aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/pirate.rb
blob: bb4d02c10ff0650a4be598ddbffe2a9c21c6e0d5 (plain) (blame)
1
2
3
4
5
6
7
class Pirate < ActiveRecord::Base
  belongs_to :parrot
  has_and_belongs_to_many :parrots
  has_many :treasures, :as => :looter

  has_many :treasure_estimates, :through => :treasures, :source => :price_estimates
end