提交 aaf99e3c 编写于 作者: A Andrew White 提交者: GitHub

Merge pull request #28939 from kirs/maintain_test_schema_friendly

Friendly maintain schema error in test runner
......@@ -12,7 +12,12 @@
require "active_support/testing/autorun"
if defined?(ActiveRecord::Base)
ActiveRecord::Migration.maintain_test_schema!
begin
ActiveRecord::Migration.maintain_test_schema!
rescue ActiveRecord::PendingMigrationError => e
puts e.to_s.strip
exit 1
end
module ActiveSupport
class TestCase
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册