aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/developer.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-07-03 08:52:59 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-07-03 08:52:59 +0000
commitdf95128e9402feb1fc08b4ac45db73daa2edade3 (patch)
treec73ba67b0097bc9383b9454e016a78da506a7a7b /activerecord/test/fixtures/developer.rb
parent38e0862c816f45292ca1b78011588e1f56b95850 (diff)
downloadrails-df95128e9402feb1fc08b4ac45db73daa2edade3.tar.gz
rails-df95128e9402feb1fc08b4ac45db73daa2edade3.tar.bz2
rails-df95128e9402feb1fc08b4ac45db73daa2edade3.zip
Fixed that has_and_belongs_to_many didn't respect single table inheritance types #1081 [Florian Weber]
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1641 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/test/fixtures/developer.rb')
-rw-r--r--activerecord/test/fixtures/developer.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/activerecord/test/fixtures/developer.rb b/activerecord/test/fixtures/developer.rb
index 6d01490844..17d0746cfa 100644
--- a/activerecord/test/fixtures/developer.rb
+++ b/activerecord/test/fixtures/developer.rb
@@ -1,6 +1,7 @@
class Developer < ActiveRecord::Base
has_and_belongs_to_many :projects
-
+ has_and_belongs_to_many :special_projects, :join_table => 'developers_projects', :association_foreign_key => 'project_id'
+
validates_inclusion_of :salary, :in => 50000..200000
validates_length_of :name, :within => 3..20
end