title: How to require a file only for console
body: <p>I've a Ruby class that I will use only for console, it monkey patches <code>ActiveRecord::Base</code> with some shortcuts like <code>ua</code> for <code>update_attribute</code> and I don't want to load it when running <code>rails server</code> but only when running the <code>rails console</code> command.</p>
  
  <p>What is the way to achieve this?</p>