Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Part 2: Multi-db improvements, Refactor Active Record configurations #33637
While the three-tier config makes it easier to define databases for
A three-tier config means that when Rails needed to choose a default
Instead of attemping to manipulate the hashes @tenderlove and I decided
We end up with an object like this:
The configurations setter takes the database configuration set by your
The configurations getter returns this object by default since it acts
This will return primary development database configuration hash:
Internally all of Active Record has been converted to use the new
The new configurations object allows us to iterate over the Active
The configurations object is more flexible than the configurations hash
PS This is easier to view in the split view.
Left to do:
I think there's more code that can be deleted, especially in ConnectionSpecification but I didn't want to go too far as I've been working on this since February.