提交 9a9ffa93 编写于 作者: G Grzegorz Bizon

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

上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册