Rake db:create:all

This link:
http://en.wikibooks.org/wiki/Ruby_on_Rails/ActiveRecord/Migrations
describes rake db:create:all as follows:

rake db:create[:all]: If :all not specified then create the database
defined in config/database.yml for the current RAILS_ENV. If :all is
specified then create all of the databases defined in
config/database.yml.

I really still didn’t get the difference between having :all or not? Can
you just clarify a bit? Especially that database.yml will already have
databases?

Thanks.

On 14 July 2010 21:35, Abder-Rahman A. [email protected] wrote:

you just clarify a bit? Especially that database.yml will already have
databases?

Normally in database.yml you define the development, production and
test databases. If all is specified then it creates all of these. If
not then it will just create the db for the default environment
(usually development) or for whichever RAILS_ENV is set to.

Colin

Colin L. wrote:

On 14 July 2010 21:35, Abder-Rahman A. [email protected] wrote:

you just clarify a bit? Especially that database.yml will already have
databases?

Normally in database.yml you define the development, production and
test databases. If all is specified then it creates all of these. If
not then it will just create the db for the default environment
(usually development) or for whichever RAILS_ENV is set to.

Colin

Thanks Colin. That makes it clear.