标签: ruby-on-rails ruby-on-rails-5
当我从rails 4.2升级到rails 5.1时,我使用rails app:update 当我config.load_defaults 5.1运行此错误时,会在application.rb中添加rails db:migrate
rails 4.2
rails 5.1
rails app:update
config.load_defaults 5.1
application.rb
rails db:migrate
rails aborted! NoMethodError: undefined method `load_defaults' for #<Rails::Application::Configuration:0x007fe92ab8aa40>