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