aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authoryui-knk <spiketeika@gmail.com>2016-01-18 10:27:00 +0900
committeryui-knk <spiketeika@gmail.com>2016-10-31 10:26:09 +0900
commit7808a90990d32aaead6d9e80f4da2b88e01adc73 (patch)
tree7cebc285a50fb0dc7663ef23cbb365b1dd23e347 /activerecord/test/schema
parent1f63d09ad78b6dada597e97359dce507c1169081 (diff)
downloadrails-7808a90990d32aaead6d9e80f4da2b88e01adc73.tar.gz
rails-7808a90990d32aaead6d9e80f4da2b88e01adc73.tar.bz2
rails-7808a90990d32aaead6d9e80f4da2b88e01adc73.zip
Fix the order of `create_table` to match a comment about `:inverse_of` options
In ActiveRecord test :men, :faces, :interests and :zines tables are used for `:inverse_of` test cases, not `:wheels`.
Diffstat (limited to 'activerecord/test/schema')
-rw-r--r--activerecord/test/schema/schema.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 983ac076a9..43c8ad922a 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -929,14 +929,14 @@ ActiveRecord::Schema.define do
t.integer :zine_id
end
- create_table :wheels, force: true do |t|
- t.references :wheelable, polymorphic: true
- end
-
create_table :zines, force: true do |t|
t.string :title
end
+ create_table :wheels, force: true do |t|
+ t.references :wheelable, polymorphic: true
+ end
+
create_table :countries, force: true, id: false, primary_key: "country_id" do |t|
t.string :country_id
t.string :name