aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/treasure.rb
blob: 97c690c110a52a530144fce2cac666af5b3c8f14 (plain) (blame)
1
2
3
4
5
6
class Treasure < ActiveRecord::Base
  has_and_belongs_to_many :parrots
  belongs_to :looter, :polymorphic => true

  has_many :price_estimates, :as => :estimate_of
end