Add connection fallback to ActiveRecordProxy
What does this MR do and why?
As observed in #341584 (closed), prepending ActiveRecordProxy before setting up the proxy may result in database queries being run that expect a connection. To work around this, ActiveRecordProxy now falls back to retrieving a regular connection when a proxy isn't available yet.
This fixes #341584 (closed)
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Yorick Peterse