mysql - Rails 3.1 Migrate to PostgreSQL locally -


i want use postgresql locally since have use on heroku. have app built , need convert have using mysql now.

i have

group :development, :test   gem 'pg' end group :production   gem 'pg' end 

and did brew install pg. ran rake db:setup , receive error

couldn't create database {"adapter"=>"sqlite3", "database"=>"db/test.sqlite3", "pool"=>5, "timeout"=>5000} db/development.sqlite3 exists rake aborted! please install sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 not part of bundle. add gemfile.) 

what's wrong?

have updated database.yml file use pg adapter?

development:     adapter: postgresql     database: cookbook     username: uid     password: pwd     host: localhost 

it looks database.yml still configured use sqlite.


Comments

Popular posts from this blog

delphi - How to convert bitmaps to video? -

jasper reports - Fixed header in Excel using JasperReports -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -