If the namespace is not used then the commands will perform on top of the default database.
bundle exec rake db:create
bundle exec rake db:migrate
By using the namespace we are going to use all the configuration for our alternate DB.
bundle exec rake store:db:create
bundle exec rake store:db:migrate
- From here having a more complex structure with more than one alternative database should be easy.
-
hey for Rails 4 change Rails.application.config.paths['db/seeds'] for Rails.application.config.paths['db/seeds.rb'] and add ActiveRecord::Migrator.migrations_paths = 'db_store/migrate' for work store:db:seed
-
add desc '' for actual tasks, so autocomplete finds them