From 7808a90990d32aaead6d9e80f4da2b88e01adc73 Mon Sep 17 00:00:00 2001 From: yui-knk Date: Mon, 18 Jan 2016 10:27:00 +0900 Subject: 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`. --- activerecord/test/schema/schema.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'activerecord/test') 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 -- cgit v1.2.3 From 4360ecf7df7220d0a074c6eec40735f5f4390a1b Mon Sep 17 00:00:00 2001 From: yui-knk Date: Mon, 31 Oct 2016 10:27:01 +0900 Subject: Remove a confusing comment These comment sometimes explain a face which does not match the face. --- activerecord/test/schema/schema.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'activerecord/test') diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 43c8ad922a..d889f46031 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -905,7 +905,6 @@ ActiveRecord::Schema.define do create_table(t, force: true) {} end - # NOTE - the following 4 tables are used by models that have :inverse_of options on the associations create_table :men, force: true do |t| t.string :name end -- cgit v1.2.3