mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
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) =========================== ``` |
||
---|---|---|
.. | ||
configuration | ||
initializers | ||
middleware | ||
rack | ||
rake | ||
asset_debugging_test.rb | ||
assets_test.rb | ||
bin_setup_test.rb | ||
configuration_test.rb | ||
console_test.rb | ||
content_security_policy_test.rb | ||
credentials_test.rb | ||
current_attributes_integration_test.rb | ||
dbconsole_test.rb | ||
feature_policy_test.rb | ||
generators_test.rb | ||
help_test.rb | ||
integration_test_case_test.rb | ||
loading_test.rb | ||
mailer_previews_test.rb | ||
middleware_test.rb | ||
multi_db_rake_test.rb | ||
multiple_applications_test.rb | ||
paths_test.rb | ||
per_request_digest_cache_test.rb | ||
rackup_test.rb | ||
rake_test.rb | ||
rendering_test.rb | ||
routing_test.rb | ||
runner_test.rb | ||
server_test.rb | ||
system_test_case_test.rb | ||
test_runner_test.rb | ||
test_test.rb | ||
url_generation_test.rb | ||
version_test.rb | ||
watcher_test.rb | ||
zeitwerk_integration_test.rb |