22 February 2017

Ruby on Rails | Production

Add Admin role in Production

  • Go to heroku console heroku run rails console grab the user you want to set to admin. user = User.find(id) or user = User.first and use this command to toggle the admin from false to true. user.toggle!(:admin)
  • Rails console at heroku

No comments:

Post a Comment