Skip to content

Instantly share code, notes, and snippets.

@jathayde
Created May 10, 2018 22:14
Show Gist options
  • Save jathayde/9cf6c1727e15b77607a05b72872dfeb2 to your computer and use it in GitHub Desktop.
Save jathayde/9cf6c1727e15b77607a05b72872dfeb2 to your computer and use it in GitHub Desktop.
(0.2ms) BEGIN
(0.1ms) COMMIT
(0.1ms) BEGIN
(0.2ms) SAVEPOINT active_record_1
User Exists (1.9ms) SELECT 1 AS one FROM "users" WHERE ("users"."id" IS NOT NULL) AND "users"."slug" = $1 LIMIT $2 [["slug", "jessika-mcglynn"], ["LIMIT", 1]]
User Exists (1.8ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2 [["email", "reie@ziemann.info"], ["LIMIT", 1]]
User Exists (1.0ms) SELECT 1 AS one FROM "users" WHERE "users"."username" = $1 LIMIT $2 [["username", "Jessika McGlynn"], ["LIMIT", 1]]
User Exists (0.6ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 LIMIT $2 [["email", "reie@ziemann.info"], ["LIMIT", 1]]
SQL (0.9ms) INSERT INTO "users" ("email", "encrypted_password", "created_at", "updated_at", "username", "firstname", "lastname", "slug", "roles_mask") VALUES ($1, $2, $3, $4, $5, $6, $7, $8, $9) RETURNING "id" [["email", "reie@ziemann.info"], ["encrypted_password", "$2a$04$CZcmrXODtPxTI47klkAVweVdm1FDjI8fMqzXqObWeEg45O9.BM1E6"], ["created_at", "2018-05-10 22:12:32.261808"], ["updated_at", "2018-05-10 22:12:32.261808"], ["username", "Jessika McGlynn"], ["firstname", "Dasia"], ["lastname", "Rohan"], ["slug", "jessika-mcglynn"], ["roles_mask", 2]]
Wishlist Exists (0.5ms) SELECT 1 AS one FROM "wishlists" WHERE "wishlists"."user_id" = $1 LIMIT $2 [["user_id", 15], ["LIMIT", 1]]
SQL (0.4ms) INSERT INTO "wishlists" ("created_at", "updated_at", "user_id") VALUES ($1, $2, $3) RETURNING "id" [["created_at", "2018-05-10 22:12:32.267027"], ["updated_at", "2018-05-10 22:12:32.267027"], ["user_id", 15]]
(0.2ms) RELEASE SAVEPOINT active_record_1
Processing by Admin::ManufacturersController#new as HTML
User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = $1 ORDER BY "users"."id" ASC LIMIT $2 [["id", 15], ["LIMIT", 1]]
(0.2ms) SAVEPOINT active_record_1
Authentication Exists (1.3ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = $1 LIMIT $2 [["user_id", "15"], ["LIMIT", 1]]
Authentication Exists (0.6ms) SELECT 1 AS one FROM "authentications" WHERE "authentications"."user_id" = $1 LIMIT $2 [["user_id", "15"], ["LIMIT", 1]]
User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."username" = $1 AND ("users"."id" != $2) LIMIT $3 [["username", "Jessika McGlynn"], ["id", 15], ["LIMIT", 1]]
User Exists (0.4ms) SELECT 1 AS one FROM "users" WHERE "users"."email" = $1 AND ("users"."id" != $2) LIMIT $3 [["email", "reie@ziemann.info"], ["id", 15], ["LIMIT", 1]]
SQL (0.5ms) UPDATE "users" SET "last_seen" = $1, "updated_at" = $2 WHERE "users"."id" = $3 [["last_seen", "2018-05-10 22:12:32.275282"], ["updated_at", "2018-05-10 22:12:32.288733"], ["id", 15]]
(0.3ms) RELEASE SAVEPOINT active_record_1
Redirected to http://test.host/
Filter chain halted as :verify_admin rendered or redirected
Completed 302 Found in 30ms (ActiveRecord: 3.9ms)
(0.2ms) ROLLBACK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment