diff options
Diffstat (limited to 'activerecord/test/fixtures/parrot.rb')
-rw-r--r-- | activerecord/test/fixtures/parrot.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/parrot.rb b/activerecord/test/fixtures/parrot.rb index 10850669e7..65191c1aa5 100644 --- a/activerecord/test/fixtures/parrot.rb +++ b/activerecord/test/fixtures/parrot.rb @@ -1,5 +1,13 @@ class Parrot < ActiveRecord::Base + set_inheritance_column :parrot_sti_class has_and_belongs_to_many :pirates has_and_belongs_to_many :treasures has_many :loots, :as => :looter end + +class LiveParrot < Parrot +end + +class DeadParrot < Parrot + belongs_to :killer, :class_name => 'Pirate' +end |