【发布时间】:2012-03-25 05:05:27
【问题描述】:
我想在本地使用 PostgreSQL,因为我必须在 Heroku 上使用它。我已经构建了我的应用程序,所以我需要转换我现在使用 MySQL 的内容。
我有
group :development, :test do
gem 'pg'
end
group :production do
gem 'pg'
end
我已经做了brew install pg。我跑了rake db:setup 并收到此错误
Couldn't create database for {"adapter"=>"sqlite3", "database"=>"db/test.sqlite3", "pool"=>5, "timeout"=>5000}
db/development.sqlite3 already exists
rake aborted!
Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 is not part of the bundle. Add it to Gemfile.)
怎么了?
【问题讨论】:
标签: mysql ruby-on-rails-3 postgresql