Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def self.up
- admin = User.find_by_login("admin")
- admin.destroy if admin
- user = User.create(:login => 'admin', :email => "admin-admin@ifansblog.playerpass.tv",
- :is_admin => true, :password => "testing",
- :password_confirmation => "testing", :first_name => "Administrator",
- :last_name => "admin", :zip_code => "3000",
- :i_have_read_and_understood_terms_of_use => true)
- user.activate!
- end
- def self.down
- User.find_by_login("admin").destroy
- end
Add Comment
Please, Sign In to add comment