Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-05-18 09:26:19 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-05-18 09:26:19 +0300
commit720770ecb82ed74979852ddf6e6a3b1dc4c88b8e (patch)
tree1a7121c5247af8908657da198fed6af96520897e
parentbcacf1a2373a3e79b974e6a59cfcd2fef53768d6 (diff)
Add latest changes from gitlab-org/gitlab@14-10-stable-ee
-rw-r--r--lib/gitlab/background_migration/project_namespaces/backfill_project_namespaces.rb2
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}')")