diff options
author | George Ogata <george.ogata@gmail.com> | 2009-11-29 00:46:09 -0500 |
---|---|---|
committer | Eloy Duran <eloy.de.enige@gmail.com> | 2009-12-28 15:12:13 +0100 |
commit | 81ca0cf2b074f4b868a84c427ef155607a956119 (patch) | |
tree | 767bccec4edba6ad384c1961de4f6c46a812662b /activerecord/test/schema | |
parent | 6c8c85bc1eaf1639ea0df5f356e7105c74d128b2 (diff) | |
download | rails-81ca0cf2b074f4b868a84c427ef155607a956119.tar.gz rails-81ca0cf2b074f4b868a84c427ef155607a956119.tar.bz2 rails-81ca0cf2b074f4b868a84c427ef155607a956119.zip |
Add inverse polymorphic association support. [#3520 state:resolved]
Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
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 0dd9da4c11..1ec36e7832 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -520,11 +520,15 @@ ActiveRecord::Schema.define do create_table :faces, :force => true do |t| t.string :description t.integer :man_id + t.integer :polymorphic_man_id + t.string :polymorphic_man_type end create_table :interests, :force => true do |t| t.string :topic t.integer :man_id + t.integer :polymorphic_man_id + t.string :polymorphic_man_type t.integer :zine_id end |