title: How to detect name collision error with Active Record in development mode
body: <p>I defined <code>enum</code> like this.</p>
  
  <pre><code>enum order_quota: {plenty: 0, limited: 1, none: 2}
  </code></pre>
  
  <p>Then I got this error.</p>
  
  <blockquote>
    <p>ArgumentError: You tried to define an enum named "order_quota" on the model "Product", but this will generate a class method "none", which is already defined by Active Record.</p>
  </blockquote>
  
  <p>I understand the error is caused by name collision with a Active Record class method.</p>
  
  <p>The problem is that the error is raised only in production mode.
  Which config should I change to detect the error in development mode?</p>