Fix usage of ActiveRecord::Base in importer code
What does this MR do and why?
Make an index_exists?
call compatible with multiple databases by using the connection from the appropriate relation class rather than ActiveRecord::Base.connection
.
Related issue: #350191 (closed)
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
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 Patrick Bair