aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/reference.rb
blob: 2feb15d706434b331d5275e96d135cc4109b0971 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
class Reference < ActiveRecord::Base
  belongs_to :person
  belongs_to :job
  
  has_many :agents_posts_authors, :through => :person
end

class BadReference < ActiveRecord::Base
  self.table_name ='references'
  default_scope :conditions => {:favourite => false }
end