aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--activerecord/test/cases/migration_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 917328231d..f74085fc7f 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -1786,10 +1786,14 @@ if ActiveRecord::Base.connection.supports_migrations?
def test_migrator_interleaved_migrations
ActiveRecord::Migrator.up(MIGRATIONS_ROOT + "/interleaved/pass_1")
+ Object.send :remove_const, :InterleavedInnocentJointable
+
assert_nothing_raised do
ActiveRecord::Migrator.up(MIGRATIONS_ROOT + "/interleaved/pass_2")
end
+ Object.send :remove_const, :InterleavedPeopleHaveLastNames
+
Person.reset_column_information
assert Person.column_methods_hash.include?(:last_name)