Fix DB load balancing for Rails 7.2
What does this MR do and why?
Rails 7.2 introduces additional entry points to fetch a connection from a model so we must also override these and return the connection proxy
References
How to set up and validate locally
This one's hard to validate, but we can verify that the Rails 7.2 pipeline passes with these changes: !203184 (closed)
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Heinrich Lee Yu