Skip to content

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.

Edited by Kamil Trzciński

Merge request reports