title: How to check if an attribute has a presence validation in Ruby on Rails
body: <p>Is there a way to know if an attribute has a validation? Something like following:</p>
  
  <pre><code>Model.attribute.has_presence_validation?
  </code></pre>