我从 5.1.6 升级到 5.2 之后,执行 rails c,控制台返回
/Users/.rbenv/versions/2.5.0/lib/ruby/gems/2.5.0/gems/psych-4.0.3/lib/psych/visitors/to_ruby.rb:430:in visit_Psych_Nodes_Alias': Cannot load
Rails.application.database_configuration`: (Psych::BadAlias)
Unknown alias: default
我的 database.yml
default: &default
adapter: postgresql
encoding: unicode
pool: 50
username: root
password:
host: localhost
development:
<<: *default
database: a_production
test:
<<: *default
database: a_test<%= ENV['TEST_ENV_NUMBER'] %>
production:
<<: *default
database: a_production