title: Defining Roles with Rolify
body: <p>I am trying to make an app with Rails 4.</p>
  
  <p>I am looking at role management and want to use Rolify because it supports instance level role assignment.</p>
  
  <p>For others looking at the same problem, there are 2 really good answers below (I can only tick one but I used both). Check out lorefnon &amp; Cyb3rDud3 answers below). I'm still figuring it out, but have made a migration with an array (as lorefnon shows) and the controller/routes functions (as Cyb3rDud3 shows).</p>
  
  <p>What is completely baffling me is that all the documents for the Rolify gem use the console to define roles.</p>
  
  <p>How do I define roles in my code?</p>
  
  <p>Others on this board have asked questions which allude to them defining roles in their db:seeds file. I don't want to do that because I want to control who uses my seeds file more tightly than who can create roles.</p>
  
  <p>Where do you do it?</p>
  
  <p>All the examples show it being done from the console. I want to define a list of roles and then I want to give roles permissions (I want to use pundit for this part).</p>
  
  <p>I have a user model. The other gem I looked at was role model. It asks you to create an array of roles in the user model. It it just so obvious that you're supposed to do that in Rolify- that none of the documents give you this step?</p>
  
  <p>Where do you define the roles?</p>