diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-18 06:26:19 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-18 06:26:19 +0000 |
commit | 720770ecb82ed74979852ddf6e6a3b1dc4c88b8e (patch) | |
tree | 1a7121c5247af8908657da198fed6af96520897e | |
parent | bcacf1a2373a3e79b974e6a59cfcd2fef53768d6 (diff) | |
download | gitlab-ce-720770ecb82ed74979852ddf6e6a3b1dc4c88b8e.tar.gz |
Add latest changes from gitlab-org/gitlab@14-10-stable-ee
-rw-r--r-- | lib/gitlab/background_migration/project_namespaces/backfill_project_namespaces.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/gitlab/background_migration/project_namespaces/backfill_project_namespaces.rb b/lib/gitlab/background_migration/project_namespaces/backfill_project_namespaces.rb index bd7d7d02162..c13dbd76630 100644 --- a/lib/gitlab/background_migration/project_namespaces/backfill_project_namespaces.rb +++ b/lib/gitlab/background_migration/project_namespaces/backfill_project_namespaces.rb @@ -55,7 +55,7 @@ module Gitlab end def cleanup_gin_index(table_name) - index_names = ActiveRecord::Base.connection.select_values("select indexname::text from pg_indexes where tablename = '#{table_name}' and indexdef ilike '%gin%'") + index_names = ApplicationRecord.connection.select_values("select indexname::text from pg_indexes where tablename = '#{table_name}' and indexdef ilike '%using gin%'") index_names.each do |index_name| ActiveRecord::Base.connection.execute("select gin_clean_pending_list('#{index_name}')") |