1 class Parrot
< ActiveRecord
::Base
2 set_inheritance_column
:parrot_sti_class
3 has_and_belongs_to_many
:pirates
4 has_and_belongs_to_many
:treasures
5 has_many
:loots, :as => :looter
6 alias_attribute
:title, :name
9 class LiveParrot
< Parrot
12 class DeadParrot
< Parrot
13 belongs_to
:killer, :class_name => 'Pirate'