我试图弄清楚如何修复活动记录问题,以便我可以推送到heroku.
----->为Rails资产管道准备应用程序运行:rake资产:预编译rake中止!ActiveRecord :: AdapterNotSpecified:未配置'postgresql'数据库.可用:["development","adapter","encoding","database","host","pool","username","password","production"]
development:
adapter: postgresql
encoding: unicode
database: sample_app_development
host: localhost
pool: 5
username: sample_app
password:
test:
adapter: postgresql
encoding: unicode
database: sample_app_test
host: localhost
pool: 5
username: sample_app
password:
production:
adapter: postgresql
encoding: unicode
database: sample_app_production
host: localhost
pool: 5
username: sample_app
password:
Run Code Online (Sandbox Code Playgroud) postgresql activerecord ruby-on-rails heroku heroku-postgres