blob: 7c23029283cd5ddf4d2f6452626547def9df3e62 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
# frozen_string_literal: true
class PrepareConfidentialNoteIndexOnId < Gitlab::Database::Migration[2.0]
INDEX_NAME = 'index_notes_on_id_where_confidential'
def up
prepare_async_index :notes, :id, where: 'confidential = true', name: INDEX_NAME
end
def down
unprepare_async_index :notes, :id, name: INDEX_NAME
end
end
|