diff options
author | Matt Jones <al2o3cr@gmail.com> | 2008-12-02 16:21:21 -0500 |
---|---|---|
committer | Pratik Naik <pratiknaik@gmail.com> | 2008-12-18 19:19:36 +0000 |
commit | a9422cc1db9501a80ecf2c25a5d3b0c4f4f32763 (patch) | |
tree | 27f933f524f033434448fd953cf24285c36d007f /activerecord/test/schema | |
parent | 8326b95169ae6af3b81f5596107fef9db4bcbbb0 (diff) | |
download | rails-a9422cc1db9501a80ecf2c25a5d3b0c4f4f32763.tar.gz rails-a9422cc1db9501a80ecf2c25a5d3b0c4f4f32763.tar.bz2 rails-a9422cc1db9501a80ecf2c25a5d3b0c4f4f32763.zip |
Fix preloading of has_one :through associations on belongs_to [#1507 state:resolved]
Signed-off-by: Frederick Cheung <frederick.cheung@gmail.com>
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 6217e3bc1c..fbacc692b4 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -195,6 +195,7 @@ ActiveRecord::Schema.define do create_table :members, :force => true do |t| t.string :name + t.integer :member_type_id end create_table :member_details, :force => true do |t| @@ -210,6 +211,10 @@ ActiveRecord::Schema.define do t.string :type end + create_table :member_types, :force => true do |t| + t.string :name + end + create_table :references, :force => true do |t| t.integer :person_id t.integer :job_id |