rails/railties/test/application/rake
André Luis Leal Cardoso Junior a636aa940b Adds db:migrate:redo:NAME support for multidbs
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) ===========================
```
2020-07-30 22:15:22 -03:00
..
dbs_test.rb Fix schema cache load and corresponding test 2020-06-04 15:12:12 -04:00
dev_test.rb Respect config setting when output deprecation notice in rake tasks 2018-09-04 20:06:54 +09:00
framework_test.rb Adding frozen_string_literal pragma to Railties. 2017-08-14 19:08:09 +02:00
initializers_test.rb Respect config setting when output deprecation notice in rake tasks 2018-09-04 20:06:54 +09:00
log_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
migrations_test.rb Revert "Merge pull request #37215 from utilum/avoid_test_flunking_on_warning" 2019-12-25 17:13:09 +09:00
multi_dbs_test.rb Adds db:migrate:redo:NAME support for multidbs 2020-07-30 22:15:22 -03:00
notes_test.rb require, require_relative, load by double quotes (#38841) 2020-03-29 16:30:52 -07:00
restart_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
routes_test.rb Update Railties tests for 7e52d0a 2020-05-21 13:00:56 -04:00
tmp_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30