title: Inherit from another class and ActiveRecord::Base
body: <p>I have two classes</p>
  
  <p><code>class Animal &lt; ActiveRecord::Base; end</code></p>
  
  <p><code>class Kitty &lt; Animal; end</code></p>
  
  <p>But when I <code>Kitty.find_by_name('Ser Pounce')</code> I find that I am actually querying the <code>Animals</code> table, despite having created a <code>Kitty</code> table through a migration.  </p>
  
  <p>So how can I tell rails that I want <code>Kitty.find_by_name</code> to query the <code>Kitty</code> table and not the parent <code>Animals</code> table?</p>