SHARE
TWEET

Untitled

a guest Feb 23rd, 2019 213 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ✔ ~/Dropbox/RailsWay/RoR/rorfirst/askme [master ↓·1↑·1|✔]
  2. 19:38 $ heroku run rails c
  3. Running rails c on ⬢ askbyme... up, run.5505 (Free)
  4. Loading production environment (Rails 5.2.2)
  5. irb(main):001:0> User.find(1)
  6. D, [2019-02-23T13:39:17.838557 #4] DEBUG -- :   User Load (1.3ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
  7. => #<User id: 1, name: "Venya", username: "venik", created_at: "2019-02-20 09:14:18", updated_at: "2019-02-20 09:19:04", email: "venya@mail.ru", password_hash: "598b4f2620256a2e05304ff85d23dfc4f778a4ad8d2de0ac76...", password_salt: "823e00de5cb9c6d50d2baaf1d89d7108", avatar_url: "", headers_color: "#48537b">
  8. irb(main):002:0> u = User.find(1)
  9. D, [2019-02-23T13:39:23.465860 #4] DEBUG -- :   User Load (1.5ms)  SELECT  "users".* FROM "users" WHERE "users"."id" = $1 LIMIT $2  [["id", 1], ["LIMIT", 1]]
  10. => #<User id: 1, name: "Venya", username: "venik", created_at: "2019-02-20 09:14:18", updated_at: "2019-02-20 09:19:04", email: "venya@mail.ru", password_hash: "598b4f2620256a2e05304ff85d23dfc4f778a4ad8d2de0ac76...", password_salt: "823e00de5cb9c6d50d2baaf1d89d7108", avatar_url: "", headers_color: "#48537b">
  11. irb(main):003:0> u
  12. => #<User id: 1, name: "Venya", username: "venik", created_at: "2019-02-20 09:14:18", updated_at: "2019-02-20 09:19:04", email: "venya@mail.ru", password_hash: "598b4f2620256a2e05304ff85d23dfc4f778a4ad8d2de0ac76...", password_salt: "823e00de5cb9c6d50d2baaf1d89d7108", avatar_url: "", headers_color: "#48537b">
  13. irb(main):004:0> u.destroy
  14. D, [2019-02-23T13:39:27.753976 #4] DEBUG -- :    (1.4ms)  BEGIN
  15. D, [2019-02-23T13:39:27.763573 #4] DEBUG -- :   Question Load (1.4ms)  SELECT "questions".* FROM "questions" WHERE "questions"."user_id" = $1  [["user_id", 1]]
  16. D, [2019-02-23T13:39:27.798692 #4] DEBUG -- :   Question Destroy (1.5ms)  DELETE FROM "questions" WHERE "questions"."id" = $1  [["id", 1]]
  17. D, [2019-02-23T13:39:27.800841 #4] DEBUG -- :   Question Destroy (1.2ms)  DELETE FROM "questions" WHERE "questions"."id" = $1  [["id", 3]]
  18. D, [2019-02-23T13:39:27.803216 #4] DEBUG -- :   User Destroy (1.4ms)  DELETE FROM "users" WHERE "users"."id" = $1  [["id", 1]]
  19. D, [2019-02-23T13:39:27.805651 #4] DEBUG -- :    (2.0ms)  COMMIT
  20. => #<User id: 1, name: "Venya", username: "venik", created_at: "2019-02-20 09:14:18", updated_at: "2019-02-20 09:19:04", email: "venya@mail.ru", password_hash: "598b4f2620256a2e05304ff85d23dfc4f778a4ad8d2de0ac76...", password_salt: "823e00de5cb9c6d50d2baaf1d89d7108", avatar_url: "", headers_color: "#48537b">
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top