What is the difference between rake db:create
and rake db:create:all
?
Both are equally used in order to create a database for a Rails application.
The most exhaustive information on rake for Rails I could find is at tutorialpoint but the above commands are missing.
rake db:create:all
creates all the databases for the application (which are defined in database.yml
)rake db:create
creates the database for the current RAILS_ENV
environment. If RAILS_ENV
is not specified it defaults to the development and test databases.FYI: http://jacopretorius.net/2014/02/all-rails-db-rake-tasks-and-what-they-do.html