Fix the failing post migration when index exists
What does this MR do and why?
Related incident: gitlab-com/gl-infra/production#7336 (closed)
Reason: the index_exists?
within the add_concurrent_index
method does not match the index properly when the columns and the direction is expressed as raw SQL. This MR adds an explicit index existence check by name.
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.