SHARE
TWEET

Untitled

a guest Apr 27th, 2018 216 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. User.find_or_create_by(email: "recruit1@gmail.com") do |user|
  2.   user.password = "password"
  3.   user.password_confirmation = "password"
  4.   user.authority = "manager"
  5. end
  6.  
  7. # テスト用アカウント start-----------------ーーーーーーーーーーー
  8. User.find_or_create_by(email: "recruit2@gmail.com") do |user|
  9.   user.password = "password"
  10.   user.password_confirmation = "password"
  11.   user.authority = "manager"
  12.  
  13. end
  14.  
  15. User.find_or_create_by(email: "recruit3@gmail.com") do |user|
  16.   user.password = "password"
  17.   user.password_confirmation = "password"
  18.   user.authority = "employee"
  19.  
  20. end
  21.  
  22. User.find_or_create_by(email: "recruit4@gmail.com") do |user|
  23.   user.password = "password"
  24.   user.password_confirmation = "password"
  25.   user.authority = "writer"
  26. end
  27.  
  28. User.find_or_create_by(email: "recruit1@gmail.com") do |user|
  29.   user.password = "password"
  30.   user.password_confirmation = "password"
  31.   user.authority = “gym”
  32. end
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