diff options
author | Matt Jones <al2o3cr@gmail.com> | 2008-11-15 01:59:12 -0500 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2008-11-15 18:20:39 +0100 |
commit | d3fd9971093101712e4cc97ccc534631888b673d (patch) | |
tree | 5a26a28aeef593529ee7acf952da57ef7f0fe3c7 /activerecord/test/schema/schema.rb | |
parent | 31be959de746da0b704684e858d1ca69dbf6bf7f (diff) | |
download | rails-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/schema.rb')
-rw-r--r-- | activerecord/test/schema/schema.rb | 10 |
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 |