Skip to content

Commit 51bb44b

Browse files
We need to restore ar_internal_metadata table also after restoring RACK or RAILS ENV
* Fixes one more random test failure `test_migration_sets_internal_metadata_even_when_fully_migrated`. * Reproduction - MTB_VERBOSE=2 minitest_bisect --seed 55673 -Itest "test/cases/migration_test.rb" "test/cases/tasks/database_tasks_test.rb"
1 parent 3735d70 commit 51bb44b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

activerecord/test/cases/migration_test.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,7 @@ def test_migration_sets_internal_metadata_even_when_fully_migrated
425425
ActiveRecord::Migrator.migrations_paths = old_path
426426
ENV["RAILS_ENV"] = original_rails_env
427427
ENV["RACK_ENV"] = original_rack_env
428+
ActiveRecord::Migrator.up(migrations_path)
428429
end
429430

430431
def test_internal_metadata_stores_environment_when_other_data_exists

0 commit comments

Comments
 (0)