Commit 9a9ffa93 authored by Grzegorz Bizon's avatar Grzegorz Bizon

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

parent 8a9e2415
......@@ -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