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

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

class PrepareJobArtifactProjectIdIndex < Gitlab::Database::Migration[2.0]
  INDEX_NAME = 'index_ci_job_artifacts_on_project_id_and_id'

  def up
    prepare_async_index :ci_job_artifacts, [:project_id, :id], name: INDEX_NAME
  end

  def down
    unprepare_async_index :notes, [:project_id, :id], name: INDEX_NAME
  end
end