diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-01-31 18:03:45 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-01-31 18:03:45 -0800 |
commit | c79220368e8180141e9d796cf026d2b7da9f6384 (patch) | |
tree | f2a3ce155d5a467d7089cef54bb4ab5298542487 /activerecord/test/schema | |
parent | aebba01f437d864baf7165f19737440002016413 (diff) | |
parent | 4ae59ebee8d404def8f9f7c716d1869fb7bb6f01 (diff) | |
download | rails-c79220368e8180141e9d796cf026d2b7da9f6384.tar.gz rails-c79220368e8180141e9d796cf026d2b7da9f6384.tar.bz2 rails-c79220368e8180141e9d796cf026d2b7da9f6384.zip |
Merge pull request #18512 from vipulnsward/18492-fixtures-with-sti
Fix STI for fixtures from multi-files
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r-- | activerecord/test/schema/schema.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 1add85cc05..49dbc5dabf 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -623,7 +623,17 @@ ActiveRecord::Schema.define do t.string :type end - create_table :randomly_named_table, force: true do |t| + create_table :randomly_named_table1, force: true do |t| + t.string :some_attribute + t.integer :another_attribute + end + + create_table :randomly_named_table2, force: true do |t| + t.string :some_attribute + t.integer :another_attribute + end + + create_table :randomly_named_table3, force: true do |t| t.string :some_attribute t.integer :another_attribute end |