aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2015-01-14 18:31:30 +0530
committerVipul A M <vipulnsward@gmail.com>2015-01-14 21:36:58 +0530
commit4ae59ebee8d404def8f9f7c716d1869fb7bb6f01 (patch)
tree6a1de52aacc51db92782d1dc5e1ad8d83fe8220d /activerecord/test/schema
parent850159bd2c5e1e108d0256dd05424bbbf7926b59 (diff)
downloadrails-4ae59ebee8d404def8f9f7c716d1869fb7bb6f01.tar.gz
rails-4ae59ebee8d404def8f9f7c716d1869fb7bb6f01.tar.bz2
rails-4ae59ebee8d404def8f9f7c716d1869fb7bb6f01.zip
Fixes #18492
- Add check for not deleting previously created fixtures, to overcome sti fixtures from multiple files - Added fixtures and fixtures test to verify the same - Fixed wrong fixtures duplicating data insertion in same table
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb12
1 files changed, 11 insertions, 1 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 21b23d8e0c..61887a8ac8 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