diff options
author | railsbob <anup.narkhede@gmail.com> | 2009-08-08 23:48:11 +0100 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2009-08-09 18:44:45 -0700 |
commit | e06a0b03c8ba29f4b05a35560645814ac88aefbe (patch) | |
tree | 862f05ab08f35a7ad7aaeaa17490de4df5cb84c4 /activerecord/test/schema | |
parent | e4ceea3795ecc7adcec28a1b9d63782be1401256 (diff) | |
download | rails-e06a0b03c8ba29f4b05a35560645814ac88aefbe.tar.gz rails-e06a0b03c8ba29f4b05a35560645814ac88aefbe.tar.bz2 rails-e06a0b03c8ba29f4b05a35560645814ac88aefbe.zip |
has_many :through create should not raise validation errors
[#2934 state:committed]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 5f60d5e137..9ab4cf6f43 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -131,6 +131,10 @@ ActiveRecord::Schema.define do t.integer :extendedWarranty, :null => false end + create_table :contracts, :force => true do |t| + t.integer :developer_id + t.integer :company_id + end create_table :customers, :force => true do |t| t.string :name |