Guest User

Untitled

a guest
May 8th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. def self.up
  2. admin = User.find_by_login("admin")
  3. admin.destroy if admin
  4.  
  5. user = User.create(:login => 'admin', :email => "admin-admin@ifansblog.playerpass.tv",
  6. :is_admin => true, :password => "testing",
  7. :password_confirmation => "testing", :first_name => "Administrator",
  8. :last_name => "admin", :zip_code => "3000",
  9. :i_have_read_and_understood_terms_of_use => true)
  10.  
  11. user.activate!
  12. end
  13.  
  14. def self.down
  15. User.find_by_login("admin").destroy
  16. end
Add Comment
Please, Sign In to add comment