This is probably a simple question, but as I have never gone through the process thought I would seek assistance. I am using devise for my user authentication in my rails 3 app. Rather than create a seperate model for my 1 admin user i would like to set a user with admin => TRUE.
I have my User DB setup ready to go ( have added Admin column in the USER DB).
My question is how do i create a User so that the admin flag is set to TRUE. Would this be done in the console, if so what would the command look like?
All help appreciated
Check out section Listing 9.41. of Michael Hartl’s tutorial.