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

20230703024031_cleanup_project_pipeline_status_key.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5b457c277b6b11b5ede76c1f6d97e39592f94b30 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class CleanupProjectPipelineStatusKey < Gitlab::Database::Migration[2.1]
  disable_ddl_transaction!

  restrict_gitlab_migration gitlab_schema: :gitlab_main

  MIGRATION_WORKER_CLASS = 'BackfillProjectPipelineStatusTtl'

  def up
    queue_redis_migration_job(MIGRATION_WORKER_CLASS)
  end

  def down
    # no-op
  end
end