aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/test/cases/migration_test.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 3181f27bc2..03ee8dcf3c 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -1109,8 +1109,7 @@ if ActiveRecord::Base.connection.supports_migrations?
ActiveRecord::Migrator.up(MIGRATIONS_ROOT + "/valid", 1)
# now unload the migrations that have been defined
- PeopleHaveLastNames.unloadable
- ActiveSupport::Dependencies.remove_unloadable_constants!
+ Object.send(:remove_const, :PeopleHaveLastNames)
ActiveRecord::Migrator.migrate(MIGRATIONS_ROOT + "/valid", nil)