title: Ruby on Rails: Find maximum integer inside a row
body: <p>does anyone know how to fetch the maximum value out of this <strong>row</strong> in rails?
  I need to get the maximum value of a <code>cat_</code></p>
  
  <p><em>Model: CategoryVote</em></p>
  
  <pre><code>id:integer
  
  cat_2:integer
  cat_3:integer
  .
  .
  cat_13:integer
  </code></pre>
  
  <p>Is there a function like maximum of (cat_2,cat_3...)? </p>
  
  <p>Thank you</p>