I'm getting this error when I run: rails generate migration AddRoleToBuyer role:integer
The error:
/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>'
The application and rspec tests is running with no problems, but migrations not working.
EDIT: this is happening when I run rails console
too.