aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorMatt Jones <al2o3cr@gmail.com>2008-11-15 01:59:12 -0500
committerMichael Koziarski <michael@koziarski.com>2008-11-15 18:20:39 +0100
commitd3fd9971093101712e4cc97ccc534631888b673d (patch)
tree5a26a28aeef593529ee7acf952da57ef7f0fe3c7 /activerecord/test/schema
parent31be959de746da0b704684e858d1ca69dbf6bf7f (diff)
downloadrails-d3fd9971093101712e4cc97ccc534631888b673d.tar.gz
rails-d3fd9971093101712e4cc97ccc534631888b673d.tar.bz2
rails-d3fd9971093101712e4cc97ccc534631888b673d.zip
fix assignment to has_one :through associations.
Signed-off-by: Michael Koziarski <michael@koziarski.com>
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index ab5c7c520b..6217e3bc1c 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -197,6 +197,12 @@ ActiveRecord::Schema.define do
t.string :name
end
+ create_table :member_details, :force => true do |t|
+ t.integer :member_id
+ t.integer :organization_id
+ t.string :extra_data
+ end
+
create_table :memberships, :force => true do |t|
t.datetime :joined_on
t.integer :club_id, :member_id
@@ -249,6 +255,10 @@ ActiveRecord::Schema.define do
t.integer :shipping_customer_id
end
+ create_table :organizations, :force => true do |t|
+ t.string :name
+ end
+
create_table :owners, :primary_key => :owner_id ,:force => true do |t|
t.string :name
end