Skip to content

Fix usage of ActiveRecord::Base in importer code

Patrick Bair requested to merge pb-fix-relation-factory-connection into master

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.

Edited by Patrick Bair

Merge request reports

Loading