Problem with rake: "development database is not configured"

Viewed 18379

I am novice rails/terminal user and just did a clean install of Lion + Xcode + Rails. Unlike before (on Snow Leopard), I now get an error running rake db:migrate.

I have cloned my code through git which worked fine and created the database witht the "createdb" command but when I try run "rake db:migrate" in terminal it now comes up with this error:

rake aborted!
development database is not configured

My config/database.yml file looks like below in the development section which is exactly the way it looked before on Snow Leopard where it worked fine, so don't know if the error I am now getting is related to Lion.

development:  
adapter: postgresql
database: my_db
username: rasmus
encoding: utf8
pool: 5

Can anyone help, please?

7 Answers

A note to others who land on this question page: be sure that you are running the rake db command correctly, i.e:

rake db:migrate instead of rake db migrate

Related