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.
3 Answers
rake db:create:allcreates all the databases for the application (which are defined indatabase.yml)rake db:createcreates the database for the currentRAILS_ENVenvironment. IfRAILS_ENVis 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