I want to use PostgreSQL locally since I have to use it on Heroku. I have my app already built and all so I need to convert what I have using MySQL now.
I have
group :development, :test do
gem 'pg'
end
group :production do
gem 'pg'
end
and I already did brew install pg. I ran rake db:setup and receive this error
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.)
What’s wrong?
Have you updated your
database.ymlfile to use the pg adapter?It looks like your database.yml is still configured to use SQLite.