summaryrefslogtreecommitdiff
path: root/db/post_migrate/20220524132416_prepare_job_artifact_project_id_index.rb
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