未验证 提交 11581afc 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #33902 from bogdanvlviv/related-to-31727

Fix deprecation warning of `ActiveRecord::Migrator.migrations_path=`
......@@ -1169,7 +1169,7 @@ class << self
def migrations_path=(path)
ActiveSupport::Deprecation.warn \
"ActiveRecord::Migrator.migrations_paths= is now deprecated and will be removed in Rails 6.0." \
"`ActiveRecord::Migrator.migrations_path=` is now deprecated and will be removed in Rails 6.0. " \
"You can set the `migrations_paths` on the `connection` instead through the `database.yml`."
self.migrations_paths = [path]
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册