diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2005-06-13 21:51:43 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2005-06-13 21:51:43 +0000 |
commit | 1d9905a67f9bf00867883d3a954df3d4df90eaba (patch) | |
tree | 66565afc066cdbfe4851f4b35a13995fe5e77680 /activerecord/test/fixtures/project.rb | |
parent | 2e6f6ced428f3b3b574e7f6a7e1511b2cf470039 (diff) | |
download | rails-1d9905a67f9bf00867883d3a954df3d4df90eaba.tar.gz rails-1d9905a67f9bf00867883d3a954df3d4df90eaba.tar.bz2 rails-1d9905a67f9bf00867883d3a954df3d4df90eaba.zip |
r1307@iwill: jeremy | 2005-06-13 19:05:00 -0700
Ticket 1312 - Malformed habtm finder sql
r1308@iwill: jeremy | 2005-06-13 19:58:48 -0700
Add a habtm with an unquoted condition to Project.
r1309@iwill: jeremy | 2005-06-13 19:59:46 -0700
Space out habtm finder conditions.
r1310@iwill: jeremy | 2005-06-13 20:00:16 -0700
Test habtm.find with quoted and unquoted conditions.
r1311@iwill: jeremy | 2005-06-13 20:00:25 -0700
Update changelog
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1414 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/project.rb')
-rw-r--r-- | activerecord/test/fixtures/project.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/project.rb b/activerecord/test/fixtures/project.rb index 89d5c36db8..a40aca95e4 100644 --- a/activerecord/test/fixtures/project.rb +++ b/activerecord/test/fixtures/project.rb @@ -1,6 +1,7 @@ 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 :salaried_developers, :class_name => "Developer", :conditions => "salary > 0" 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 @@ -8,4 +9,4 @@ class SpecialProject < Project def hello_world "hello there!" end -end
\ No newline at end of file +end |