Make `finalize_background_migration` to work properly with many DBs
What does this MR do and why?
This makes the finalize_background_migration
when running migration
class to restore original connections allowing the application
to use ApplicationRecord
as a way to access main database.
Subset of: !86338 (closed)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Kamil Trzciński (Back 2025-01-01)