Jack

Joined

60 Experience
0 Lessons Completed
0 Questions Solved

Activity

Posted in How do I update a user to admin in production?

Thanks, Jesper. I think I'll use the console!

Posted in How do I update a user to admin in production?

Simple question I guess. But how do I update a user to admin in production?

I have a pretty basic setup (no admin gems). The user model has a is_admin boolean field with the default being FALSE. In development I just update the field to TRUE with the terminal. Is it fine doing this in production or is there a better flow I could build for doing this?

logo Created with Sketch.

Screencast tutorials to help you learn Ruby on Rails, Javascript, Hotwire, Turbo, Stimulus.js, PostgreSQL, MySQL, Ubuntu, and more. Icons by Icons8

© 2023 GoRails, LLC. All rights reserved.