Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make DatabaseTasks adapters use DatabaseConfig objects #37291

Commits on Sep 25, 2019

  1. Make DatabaseTasks adapters use DatabaseConfig objects

    We are moving to using `DatabaseConfig` objects everywhere inside of
    Rails instead of passing around Hash objects.
    
    This PR moves to using `DatabaseConfig` objects inside of the individual
    database tasks adapters. In the interest of not breaking existing
    adapters, we've introduced an upgrade path by which adapters can get a
    hold of database configuration objects instead of Hashes by implementing
    a method `self.using_database_configurations?`
    
    Co-authored-by: eileencodes <eileencodes@gmail.com>
    seejohnrun and eileencodes committed Sep 25, 2019
    Configuration menu
    Copy the full SHA
    4ee9dab View commit details
    Browse the repository at this point in the history