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

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

class PrepareCreateInternalNotesIndexOnId < Gitlab::Database::Migration[2.0]
  INDEX_NAME = 'index_notes_on_id_where_internal'

  def up
    prepare_async_index :notes, :id, where: 'internal = true', name: INDEX_NAME
  end

  def down
    unprepare_async_index_by_name :notes, INDEX_NAME
  end
end