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:
Diffstat (limited to 'lib/gitlab/background_migration/migrate_shimo_confluence_integration_category.rb')
-rw-r--r--lib/gitlab/background_migration/migrate_shimo_confluence_integration_category.rb27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/gitlab/background_migration/migrate_shimo_confluence_integration_category.rb b/lib/gitlab/background_migration/migrate_shimo_confluence_integration_category.rb
deleted file mode 100644
index d7d24960a41..00000000000
--- a/lib/gitlab/background_migration/migrate_shimo_confluence_integration_category.rb
+++ /dev/null
@@ -1,27 +0,0 @@
-# frozen_string_literal: true
-
-module Gitlab
- module BackgroundMigration
- # The class to migrate category of integrations to third_party_wiki for confluence and shimo
- class MigrateShimoConfluenceIntegrationCategory
- include Gitlab::Database::DynamicModelHelpers
-
- def perform(start_id, end_id)
- define_batchable_model('integrations', connection: ApplicationRecord.connection)
- .where(id: start_id..end_id, type_new: %w[Integrations::Confluence Integrations::Shimo])
- .update_all(category: 'third_party_wiki')
-
- mark_job_as_succeeded(start_id, end_id)
- end
-
- private
-
- def mark_job_as_succeeded(*arguments)
- Gitlab::Database::BackgroundMigrationJob.mark_all_as_succeeded(
- self.class.name.demodulize,
- arguments
- )
- end
- end
- end
-end