Commit e8d4685d authored by Rémy Coutable's avatar Rémy Coutable

Merge branch 'fix/gb/improve-active-record-test-extensions' into 'master'

Make `ActiveRecord::Migrator` idempotent again in test environment

Closes #33030

See merge request !11762
parents e89d23ff 9a9ffa93
......@@ -10,7 +10,7 @@ if Rails.env.test?
# it reads + parses `db/migrate/*` each time. Memoizing it can save 0.5
# seconds per spec.
def migrations(paths)
@migrations ||= migrations_unmemoized(paths)
(@migrations ||= migrations_unmemoized(paths)).dup
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment