1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/railties/test/application
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
..
configuration Use respond_to test helpers 2018-01-25 23:32:58 -05:00
initializers Heed config.force_ssl when building URL 2020-04-05 18:19:31 -05:00
middleware Fix keyword arguments warnings 2019-09-09 22:49:09 +09:00
rack Log the remote IP addr of clients behind a proxy 2018-07-31 20:45:37 +05:30
rake Adds db:migrate:redo:NAME support for multidbs 2020-07-30 22:15:22 -03:00
asset_debugging_test.rb Sprockets uses debug. not self. now 2019-10-10 14:43:03 -07:00
assets_test.rb Use URI::DEFAULT_PARSER rather than instantiate a new one 2020-06-29 23:06:34 +02:00
bin_setup_test.rb Revert "Merge pull request #37215 from utilum/avoid_test_flunking_on_warning" 2019-12-25 17:13:09 +09:00
configuration_test.rb Change default HTTP status to 308 for ActionDispatch::SSL. 2020-07-06 14:51:24 +08:00
console_test.rb Use the single line editor in console test 2019-12-24 20:47:21 +09:00
content_security_policy_test.rb Add the ability to set the CSP nonce only to the specified directives 2019-06-22 12:44:37 +09:00
credentials_test.rb Restructure credentials after environment overrides. 2019-01-14 20:13:00 +01:00
current_attributes_integration_test.rb Use try only when we're unsure if the receiver would respond_to the method 2019-08-01 17:58:00 +09:00
dbconsole_test.rb Use correct variable 2018-09-11 07:06:30 +09:00
feature_policy_test.rb Adds support for configuring HTTP Feature Policy (#33439) 2019-07-10 15:33:15 -07:00
generators_test.rb Add config.generators.after_generate for processing to generated files 2020-05-08 21:06:04 +09:00
help_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
integration_test_case_test.rb require, require_relative, load by double quotes (#38841) 2020-03-29 16:30:52 -07:00
loading_test.rb Refactor schema migration on connection 2020-03-09 09:59:36 -04:00
mailer_previews_test.rb Use binread instead of setting file mode manually 2020-05-13 00:05:32 +01:00
middleware_test.rb Change default HTTP status to 308 for ActionDispatch::SSL. 2020-07-06 14:51:24 +08:00
multi_db_rake_test.rb Generate abstract class when generating scaffold in another database 2020-07-29 12:43:45 -04:00
multiple_applications_test.rb Zeitwerk integration 2019-02-12 02:28:04 -08:00
paths_test.rb Bring back feature that allows loading external route iles: 2019-12-06 14:20:12 +01:00
per_request_digest_cache_test.rb Clear cache after setting Template::Types delegate 2020-05-21 22:43:13 -07:00
rackup_test.rb Remove unnecessary migration deletion 2017-11-08 13:24:16 +09:00
rake_test.rb Use ES module syntax for application.js.tt and docs 2020-06-16 15:12:12 -04:00
rendering_test.rb Lazily build path regex in PathParser 2020-05-31 15:28:24 -05:00
routing_test.rb Bring back feature that allows loading external route iles: 2019-12-06 14:20:12 +01:00
runner_test.rb Revert "Merge pull request #37215 from utilum/avoid_test_flunking_on_warning" 2019-12-25 17:13:09 +09:00
server_test.rb require, require_relative, load by double quotes (#38841) 2020-03-29 16:30:52 -07:00
system_test_case_test.rb Define the url_options needed for SytemTest inside the route proxy: 2019-07-24 01:18:00 +02:00
test_runner_test.rb Merge pull request #39001 from jonathanhefner/test-runner-recognize-windows-paths 2020-05-07 22:48:23 +02:00
test_test.rb require, require_relative, load by double quotes (#38841) 2020-03-29 16:30:52 -07:00
url_generation_test.rb Fix secret_key_base for Railties 2019-03-13 16:41:29 -04:00
version_test.rb Run in-app rails commands via fork+load where possible 2017-09-04 20:19:39 +09:30
watcher_test.rb Correctly classify the files and directories that pass to watcher 2019-09-02 11:22:39 +09:00
zeitwerk_integration_test.rb Refactor schema migration on connection 2020-03-09 09:59:36 -04:00