aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/schema.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-05-21 08:19:01 +0200
committerYves Senn <yves.senn@gmail.com>2014-05-21 08:51:32 +0200
commitf69f20e4ff6295eab6aa5c38eecb2489d9a90676 (patch)
tree2c0ebc9cfedf5e193616099e15acfe9bf99344c2 /activerecord/test/schema/schema.rb
parentb17f6e6877162648936c32e62c58305861beaf70 (diff)
parent4debc86bd329d31360272ed15459cde3b9af3a10 (diff)
downloadrails-f69f20e4ff6295eab6aa5c38eecb2489d9a90676.tar.gz
rails-f69f20e4ff6295eab6aa5c38eecb2489d9a90676.tar.bz2
rails-f69f20e4ff6295eab6aa5c38eecb2489d9a90676.zip
Merge pull request #14855 from laurocaetano/fix_polymorphic_with_string_key
Fix polymorphic eager load with foreign_key as String.
Diffstat (limited to 'activerecord/test/schema/schema.rb')
-rw-r--r--activerecord/test/schema/schema.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 9e511af3bd..67ba358843 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -187,6 +187,9 @@ ActiveRecord::Schema.define do
t.integer :taggings_count, default: 0
t.integer :children_count, default: 0
t.integer :parent_id
+ t.references :author, polymorphic: true
+ t.string :resource_id
+ t.string :resource_type
end
create_table :companies, force: true do |t|