a636aa940b
On current master with multiple DBs configured, calling db:migrate:redo fails when trying to run db:rollback. Before: ``` » bin/rails db:migrate:redo rake aborted! You're using a multiple database application. To use `db:rollback` you must run the namespaced task with a VERSION. Available tasks are db:rollback:primary and db:rollback:secondary. Tasks: TOP => db:rollback (See full trace by running task with --trace) ``` After: ``` » bin/rails db:migrate:redo rake aborted! You're using a multiple database application. To use `db:migrate:redo` you must run the namespaced task with a VERSION. Available tasks are db:migrate:redo:primary and db:migrate:redo:secondary. Tasks: TOP => db:migrate:redo (See full trace by running task with --trace) ``` Running the namespaced version: ``` » bin/rails db:migrate:redo:secondary == 20200728162820 CreateAnimals: reverting ==================================== -- drop_table(:animals) -> 0.0025s == 20200728162820 CreateAnimals: reverted (0.0047s) =========================== == 20200728162820 CreateAnimals: migrating ==================================== -- create_table(:animals) -> 0.0028s == 20200728162820 CreateAnimals: migrated (0.0029s) =========================== ``` |
||
---|---|---|
.. | ||
dbs_test.rb | ||
dev_test.rb | ||
framework_test.rb | ||
initializers_test.rb | ||
log_test.rb | ||
migrations_test.rb | ||
multi_dbs_test.rb | ||
notes_test.rb | ||
restart_test.rb | ||
routes_test.rb | ||
tmp_test.rb |