Commit f296a13d authored by Krasimir Angelov's avatar Krasimir Angelov

Prefer `connection` over `ApplicationRecord.connection` in helpers

Use the existing `connection` helper in migrations, instead of
`ApplicationRecord.connection`.

See
https://gitlab.com/gitlab-org/gitlab/-/merge_requests/82565#note_870365811.
parent 56fe6dcf
......@@ -72,7 +72,7 @@ module Gitlab
end
def async_index_creation_available?
ApplicationRecord.connection.table_exists?(:postgres_async_indexes)
connection.table_exists?(:postgres_async_indexes)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment