diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-27 18:51:32 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2007-10-27 18:51:32 +0000 |
commit | 4b639904d7bc4407657767bb963997bc78678d03 (patch) | |
tree | 8819aed22cbcd90b7decee02639a275adbf01572 /activerecord/test/fixtures/db_definitions | |
parent | cf9be897b81b5cda0282fb3439c11af6032ecedb (diff) | |
download | rails-4b639904d7bc4407657767bb963997bc78678d03.tar.gz rails-4b639904d7bc4407657767bb963997bc78678d03.tar.bz2 rails-4b639904d7bc4407657767bb963997bc78678d03.zip |
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
Diffstat (limited to 'activerecord/test/fixtures/db_definitions')
-rw-r--r-- | activerecord/test/fixtures/db_definitions/schema.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/db_definitions/schema.rb b/activerecord/test/fixtures/db_definitions/schema.rb index 9cadc5bdb8..5bde5126d5 100644 --- a/activerecord/test/fixtures/db_definitions/schema.rb +++ b/activerecord/test/fixtures/db_definitions/schema.rb @@ -290,6 +290,15 @@ ActiveRecord::Schema.define do t.column :developer_id, :integer, :null=>false end + create_table :books, :force => true do |t| + t.column :name, :string + end + + create_table :citations, :force => true do |t| + t.column :book1_id, :integer + t.column :book2_id, :integer + end + create_table :inept_wizards, :force => true do |t| t.column :name, :string, :null => false t.column :city, :string, :null => false |