title: undefined method `enum' for #<Class:0x007f099c303390>
body: <p>I am using in rails and getting following error:</p>
  
  <pre><code>undefined method `enum' for #&lt;Class:0x007f03202a1190
  </code></pre>
  
  <p>Model</p>
  
  <pre><code>class Location &lt; ActiveRecord::Base
  
     enum status: [ :current, :preffered ]
  
  end
  </code></pre>
  
  <p>How can i remove this error.</p>