Я получаю эту ошибку при запуске: rails generate migration AddRoleToBuyer role:integer
Ошибка:
/usr/lib/ruby/vendor_ruby/rails/railtie/configuration.rb:95:in `method_missing': undefined method `load_defaults' for #<Rails::Application::Configuration:0x000055e8c09a10d8> (NoMethodError)
from /home/murilo/projects/api-service/config/application.rb:24:in `<class:Application>'
from /home/murilo/projects/api-service/config/application.rb:22:in `<module:ApiService>'
from /home/murilo/projects/api-service/config/application.rb:21:in `<top (required)>'
from /home/murilo/projects/api-service/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:92:in `require'
from /home/murilo/projects/api-service/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:92:in `preload'
from /home/murilo/projects/api-service/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:153:in `serve'
from /home/murilo/projects/api-service/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:141:in `block in run'
from /home/murilo/projects/api-service/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `loop'
from /home/murilo/projects/api-service/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/application.rb:135:in `run'
from /home/murilo/projects/api-service/vendor/bundle/ruby/2.5.0/gems/spring-2.0.2/lib/spring/application/boot.rb:19:in `<top (required)>'
from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from /usr/lib/ruby/2.5.0/rubygems/core_ext/kernel_require.rb:59:in `require'
from -e:1:in `<main>'
Тесты приложения и rspec выполняются без проблем, но миграции не работают.
РЕДАКТИРОВАТЬ: это происходит, когда я запускаю rails console
тоже.