aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/reference.rb
blob: 87d4a719635ff278a58d0ee44ff5bf51a7a7aa94 (plain) (tree)
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