From 4b639904d7bc4407657767bb963997bc78678d03 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 27 Oct 2007 18:51:32 +0000 Subject: Fix has_many :through delete with custom foreign keys. Closes #6466. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8043 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/test/fixtures/citation.rb | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 activerecord/test/fixtures/citation.rb (limited to 'activerecord/test/fixtures/citation.rb') diff --git a/activerecord/test/fixtures/citation.rb b/activerecord/test/fixtures/citation.rb new file mode 100644 index 0000000000..545aa8110d --- /dev/null +++ b/activerecord/test/fixtures/citation.rb @@ -0,0 +1,6 @@ +class Citation < ActiveRecord::Base + belongs_to :reference_of, :class_name => "Book", :foreign_key => :book2_id + + belongs_to :book1, :class_name => "Book", :foreign_key => :book1_id + belongs_to :book2, :class_name => "Book", :foreign_key => :book2_id +end -- cgit v1.2.3