Created
December 24, 2013 03:45
-
-
Save allenwalker3/8108557 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Started POST "/members" for 127.0.0.1 at 2013-12-23 20:44:27 -0700 | |
Started POST "/members" for 127.0.0.1 at 2013-12-23 20:44:27 -0700 | |
ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations".* FROM "schema_migrations" | |
ActiveRecord::SchemaMigration Load (2.0ms) SELECT "schema_migrations".* FROM "schema_migrations" | |
Processing by MembersController#create as HTML | |
Processing by MembersController#create as HTML | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"HgY5+X4m76fImaNCL/t6MCbAfNZkV+ksShcH3oDc2Ug=", "user"=>{"email"=>"[email protected]"}, "member"=>{"first_name"=>"Joe", "last_name"=>"Smith", "broker_dealer_number"=>"xxxx"}, "role"=>"tenant_admin"} | |
Parameters: {"utf8"=>"✓", "authenticity_token"=>"HgY5+X4m76fImaNCL/t6MCbAfNZkV+ksShcH3oDc2Ug=", "user"=>{"email"=>"[email protected]"}, "member"=>{"first_name"=>"Joe", "last_name"=>"Smith", "broker_dealer_number"=>"xxxx"}, "role"=>"tenant_admin"} | |
User Load (6.0ms) SELECT "users".* FROM "users" WHERE (users.tenant_id IS NULL) AND "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1 | |
User Load (6.0ms) SELECT "users".* FROM "users" WHERE (users.tenant_id IS NULL) AND "users"."id" = 1 ORDER BY "users"."id" ASC LIMIT 1 | |
Tenant Load (6.1ms) SELECT "tenants".* FROM "tenants" INNER JOIN "tenants_users" ON "tenants"."id" = "tenants_users"."tenant_id" WHERE (tenants.tenant_id IS NULL) AND "tenants_users"."user_id" = $1 [["user_id", 1]] | |
Tenant Load (6.1ms) SELECT "tenants".* FROM "tenants" INNER JOIN "tenants_users" ON "tenants"."id" = "tenants_users"."tenant_id" WHERE (tenants.tenant_id IS NULL) AND "tenants_users"."user_id" = $1 [["user_id", 1]] | |
DEPRECATION WARNING: Relation#first with finder options is deprecated. Please build a scope and then call #first on it instead. (called from save_and_invite_member at /home/allen/.rvm/gems/ruby-2.0.0-p353@cdorder/bundler/gems/milia-db26774ebc67/lib/milia/invite_member.rb:55) | |
DEPRECATION WARNING: Relation#first with finder options is deprecated. Please build a scope and then call #first on it instead. (called from save_and_invite_member at /home/allen/.rvm/gems/ruby-2.0.0-p353@cdorder/bundler/gems/milia-db26774ebc67/lib/milia/invite_member.rb:55) | |
User Load (1.1ms) SELECT "users".* FROM "users" WHERE (users.tenant_id IS NULL) AND (lower(email) = '[email protected]') ORDER BY "users"."id" ASC LIMIT 1 | |
User Load (1.1ms) SELECT "users".* FROM "users" WHERE (users.tenant_id IS NULL) AND (lower(email) = '[email protected]') ORDER BY "users"."id" ASC LIMIT 1 | |
(0.3ms) BEGIN | |
(0.3ms) BEGIN | |
User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = '[email protected]' LIMIT 1 | |
User Exists (0.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = '[email protected]' LIMIT 1 | |
SQL (7.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 23 Dec 2013 21:44:27 CST -06:00], ["email", "[email protected]"], ["encrypted_password", "$2a$10$J7fm5BpVCR9Tshus/JjSOu72Kq3UzyTxSH1JpTRx26IFlapPKcePe"], ["updated_at", Mon, 23 Dec 2013 21:44:27 CST -06:00]] | |
SQL (7.5ms) INSERT INTO "users" ("created_at", "email", "encrypted_password", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["created_at", Mon, 23 Dec 2013 21:44:27 CST -06:00], ["email", "[email protected]"], ["encrypted_password", "$2a$10$J7fm5BpVCR9Tshus/JjSOu72Kq3UzyTxSH1JpTRx26IFlapPKcePe"], ["updated_at", Mon, 23 Dec 2013 21:44:27 CST -06:00]] | |
Tenant Load (0.7ms) SELECT "tenants".* FROM "tenants" WHERE (tenants.tenant_id IS NULL) AND "tenants"."id" = $1 LIMIT 1 [["id", 1]] | |
Tenant Load (0.7ms) SELECT "tenants".* FROM "tenants" WHERE (tenants.tenant_id IS NULL) AND "tenants"."id" = $1 LIMIT 1 [["id", 1]] | |
User Exists (0.8ms) SELECT 1 AS one FROM "users" INNER JOIN "tenants_users" ON "users"."id" = "tenants_users"."user_id" WHERE (users.tenant_id IS NULL) AND "tenants_users"."tenant_id" = $1 AND "users"."id" = 6 LIMIT 1 [["tenant_id", 1]] | |
User Exists (0.8ms) SELECT 1 AS one FROM "users" INNER JOIN "tenants_users" ON "users"."id" = "tenants_users"."user_id" WHERE (users.tenant_id IS NULL) AND "tenants_users"."tenant_id" = $1 AND "users"."id" = 6 LIMIT 1 [["tenant_id", 1]] | |
(0.3ms) INSERT INTO "tenants_users" ("tenant_id", "user_id") VALUES (1, 6) | |
(0.3ms) INSERT INTO "tenants_users" ("tenant_id", "user_id") VALUES (1, 6) | |
(6.6ms) COMMIT | |
(6.6ms) COMMIT | |
(0.2ms) BEGIN | |
(0.2ms) BEGIN | |
SQL (1.2ms) INSERT INTO "members" ("broker_dealer_number", "created_at", "first_name", "last_name", "tenant_id", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["broker_dealer_number", "xxxx"], ["created_at", Mon, 23 Dec 2013 21:44:27 CST -06:00], ["first_name", "Joe"], ["last_name", "Smith"], ["tenant_id", 1], ["updated_at", Mon, 23 Dec 2013 21:44:27 CST -06:00], ["user_id", 6]] | |
SQL (1.2ms) INSERT INTO "members" ("broker_dealer_number", "created_at", "first_name", "last_name", "tenant_id", "updated_at", "user_id") VALUES ($1, $2, $3, $4, $5, $6, $7) RETURNING "id" [["broker_dealer_number", "xxxx"], ["created_at", Mon, 23 Dec 2013 21:44:27 CST -06:00], ["first_name", "Joe"], ["last_name", "Smith"], ["tenant_id", 1], ["updated_at", Mon, 23 Dec 2013 21:44:27 CST -06:00], ["user_id", 6]] | |
(4.2ms) COMMIT | |
(4.2ms) COMMIT | |
Member Load (1.0ms) SELECT "members".* FROM "members" WHERE (members.tenant_id = 1) AND "members"."user_id" = $1 ORDER BY "members"."id" ASC LIMIT 1 [["user_id", 6]] | |
Member Load (1.0ms) SELECT "members".* FROM "members" WHERE (members.tenant_id = 1) AND "members"."user_id" = $1 ORDER BY "members"."id" ASC LIMIT 1 [["user_id", 6]] | |
Role Load (1.0ms) SELECT "roles".* FROM "roles" WHERE "roles"."name" = 'tenant_admin' ORDER BY "roles"."id" ASC LIMIT 1 | |
Role Load (1.0ms) SELECT "roles".* FROM "roles" WHERE "roles"."name" = 'tenant_admin' ORDER BY "roles"."id" ASC LIMIT 1 | |
Role Load (1.0ms) SELECT "roles".* FROM "roles" INNER JOIN "roles_users" ON "roles"."id" = "roles_users"."role_id" WHERE "roles_users"."user_id" = $1 [["user_id", 6]] | |
Role Load (1.0ms) SELECT "roles".* FROM "roles" INNER JOIN "roles_users" ON "roles"."id" = "roles_users"."role_id" WHERE "roles_users"."user_id" = $1 [["user_id", 6]] | |
(0.2ms) BEGIN | |
(0.2ms) BEGIN | |
(0.2ms) INSERT INTO "roles_users" ("user_id", "role_id") VALUES (6, 2) | |
(0.2ms) INSERT INTO "roles_users" ("user_id", "role_id") VALUES (6, 2) | |
(2.8ms) COMMIT | |
(2.8ms) COMMIT | |
Redirected to http://localhost:3000/ | |
Redirected to http://localhost:3000/ | |
Completed 302 Found in 385ms (ActiveRecord: 55.8ms) | |
Completed 302 Found in 385ms (ActiveRecord: 55.8ms) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment