# Rake db:create:all

**URL:** <https://www.ruby-forum.com/t/rake-dball/191591>\
**Category:** Rails\
**Created:** [July 14, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/rake-dball/191591 "2010-07-14T22:35:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 14, 2010, 10:35pm UTC](https://www.ruby-forum.com/t/rake-dball/191591/1 "2010-07-14T22:35:06Z")

</div>

This link:  
[http://en.wikibooks.org/wiki/Ruby\_on\_Rails/ActiveRecord/Migrations](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.

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 14, 2010, 10:49pm UTC](https://www.ruby-forum.com/t/rake-dball/191591/2 "2010-07-14T22:49:46Z")

</div>

On 14 July 2010 21:35, Abder-Rahman A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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

---

<div class="post-metadata">

**Author:** ![swengineer](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/97f17d/32.png) [@swengineer](https://www.ruby-forum.com/u/swengineer)\
**Post date:** [July 19, 2010, 4:54pm UTC](https://www.ruby-forum.com/t/rake-dball/191591/3 "2010-07-19T16:54:16Z")

</div>

Colin L. wrote:

> On 14 July 2010 21:35, Abder-Rahman A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.
