Making Admin Account on Staging
Make your account and then do this...
heroku run rails console -a powr-staging
@user = User.find_by(email: "[email protected]")
admin = Role.find_by(name: 'admin')
@user.roles << admin
@user.save
Make your account and then do this...
heroku run rails console -a powr-staging
@user = User.find_by(email: "[email protected]")
admin = Role.find_by(name: 'admin')
@user.roles << admin
@user.save