diff options
author | eileencodes <eileencodes@gmail.com> | 2018-03-16 13:56:58 -0400 |
---|---|---|
committer | eileencodes <eileencodes@gmail.com> | 2018-03-21 13:53:24 -0400 |
commit | d79d6867a23b90e0f9e2670a3300c9a044c84dca (patch) | |
tree | 382f8326848c0e98ba609f54bb24527f9f85a161 /activesupport/lib/active_support/values/time_zone.rb | |
parent | 1756094b22bf81f15ffdfdb5208075b58c45296f (diff) | |
download | rails-d79d6867a23b90e0f9e2670a3300c9a044c84dca.tar.gz rails-d79d6867a23b90e0f9e2670a3300c9a044c84dca.tar.bz2 rails-d79d6867a23b90e0f9e2670a3300c9a044c84dca.zip |
Add create/drop/migrate db tasks for each database in the environment
If we have a three-tier yaml file like this:
```
development:
primary:
database: "development"
animals:
database: "development_animals"
migrations_paths: "db/animals_migrate"
```
This will add db create/drop/and migrate tasks for each level of the
config under that environment.
```
bin/rails db:drop:primary
bin/rails db:drop:animals
bin/rails db:create:primary
bin/rails db:create:animals
bin/rails db:migrate:primary
bin/rails db:migrate:animals
```
Diffstat (limited to 'activesupport/lib/active_support/values/time_zone.rb')
0 files changed, 0 insertions, 0 deletions