• E
    Revert "Merge pull request #38658 from eileencodes/refactor-for-each-databases-code" · 2d37ea04
    eileencodes 提交于
    This reverts commit 9a5bc246, reversing
    changes made to 227ff44e.
    
    I realized afterwards that this was written this way for a reason and it
    wasn't accidental. The databases loaded in `for_each` are not complete
    database configs because these are generated from the database yaml
    before the Rails env is loaded. So we actually do need to refetch the
    correct database configuration objects after we've loaded the Rails env.
    2d37ea04
database_tasks.rb 18.4 KB