diff options
Diffstat (limited to 'activerecord/test/models/project.rb')
-rw-r--r-- | activerecord/test/models/project.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/project.rb b/activerecord/test/models/project.rb index b90d2c6fbc..e1ab89eca5 100644 --- a/activerecord/test/models/project.rb +++ b/activerecord/test/models/project.rb @@ -1,5 +1,6 @@ class Project < ActiveRecord::Base has_and_belongs_to_many :developers, :uniq => true, :order => 'developers.name desc, developers.id desc' + has_and_belongs_to_many :readonly_developers, :class_name => "Developer", :readonly => true has_and_belongs_to_many :selected_developers, :class_name => "Developer", :select => "developers.*", :uniq => true has_and_belongs_to_many :non_unique_developers, :order => 'developers.name desc, developers.id desc', :class_name => 'Developer' has_and_belongs_to_many :limited_developers, :class_name => "Developer", :limit => 1 |