2018-12-13 13:39:08 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2020-06-23 00:09:42 +05:30
|
|
|
class AddEpicsConfidentialIndex < ActiveRecord::Migration[6.0]
|
2018-12-13 13:39:08 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
2020-06-23 00:09:42 +05:30
|
|
|
add_concurrent_index :epics, :confidential
|
2018-12-13 13:39:08 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
2020-06-23 00:09:42 +05:30
|
|
|
remove_concurrent_index :epics, :confidential
|
2018-12-13 13:39:08 +05:30
|
|
|
end
|
|
|
|
end
|