aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/fixtures/project.rb
blob: 89d5c36db8e3ec2cd37e1a53a48a9960afaead9f (plain) (tree)
1
2
3
4
5
6
7
8
9
10


                                                                                                                             
                                                                                                                                                                                     





                              
  
class Project < ActiveRecord::Base
  has_and_belongs_to_many :developers, :uniq => true
  has_and_belongs_to_many :developers_named_david, :class_name => "Developer", :conditions => "name = 'David'", :uniq => true
  has_and_belongs_to_many :developers_by_sql, :class_name => "Developer", :delete_sql => "DELETE FROM developers_projects WHERE project_id = \#{id} AND developer_id = \#{record.id}"
end

class SpecialProject < Project
  def hello_world
    "hello there!"
  end
end