Refactor migration to move migrations paths to connection
#31727

eileencodes wants to merge eileencodes:refactor-migration-classes-to-allow-for-migrations_paths-on-conn into rails:master

We do not currently have an analysis of these two commits