Rails 6 has Multiple Databases with Active Record.
My question is what if I want to rollback a migration in one specific database?
something like this is not working:
rails db:rollback:primary
Link to "Multiple Databases with Active Record" documentation: https://edgeguides.rubyonrails.org/active_record_multiple_databases.html
try run rails db:migrate:down:secondary VERSION=yourdbversionnumber
.
I realized that this command are available when i try to run rails db:migrate:down
and then rails give this in the terminal. Also, maybe for further details on rails db:migrate:down
,refer to How to rollback a specific migration?
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With