我正在尝试将现有项目从 Ruby 2.3 升级到 Ruby 2.6
一切正常,直到我在运行时收到以下错误rake db:create
rake aborted!
ActiveRecord::ConnectionNotEstablished: No connection pool for PublicActivity::ORM::ActiveRecord::Activity
/home/user/project/engines/admin/lib/admin/activity_extension.rb:10:in `<module:Admin>'
/home/user/project/engines/admin/lib/admin/activity_extension.rb:1:in `<top (required)>'
/home/user/project/engines/admin/lib/admin/engine.rb:8:in `<top (required)>'
/home/user/project/engines/admin/lib/admin.rb:1:in `require'
/home/user/project/engines/admin/lib/admin.rb:1:in `<top (required)>'
/home/user/project/config/application.rb:17:in `<top (required)>'
/home/user/project/Rakefile:4:in `<top (required)>'
我使用 postgresql 作为数据库,这是database.yml
文件 -
default: &default
adapter: postgresql
encoding: unicode
username: -------
password: -------
host: localhost
port: 5432
pool: 5
development:
<<: *default
database: mydbName
有谁知道我为什么会收到这个错误?
任何形式的帮助将不胜感激!