aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorMatt Jones <al2o3cr@gmail.com>2008-12-02 16:21:21 -0500
committerPratik Naik <pratiknaik@gmail.com>2008-12-18 19:19:36 +0000
commita9422cc1db9501a80ecf2c25a5d3b0c4f4f32763 (patch)
tree27f933f524f033434448fd953cf24285c36d007f /activerecord/test/schema
parent8326b95169ae6af3b81f5596107fef9db4bcbbb0 (diff)
downloadrails-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.rb5
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