0
我正在使用Ruby on Rails(rails版本2.3.4),並在Windows上使用pg gem(版本0.12.2)。 我的database.yml文件有以下內容:Ruby on Rails錯誤:無效的連接「適配器」
production:
adapter: postgresql
encoding: utf8
host: localhost
database: canvas4
username: canvas
password: canvas
port: 5433
timeout: 5000
pool: 5
queue:
adapter: postgresql
encoding: utf8
database: canvas4_queue
host: localhost
port: 5433
username: canvas
password: canvas
timeout: 5000
pool: 5
但是當我運行命令:bundle exec rake db:initial_setup RAILS_ENV=production
,出現錯誤:
Invalid connection "adapter"
我也試圖與gem "activerecord-postgresql-adapter"
但同樣的錯誤如上所述。
我可以用sqlite3驅動程序成功安裝。
你知道如何讓postgresql適配器使用rails 2.3嗎?