blob: 58a1d2b12d563a8b9a9ab40443d4f7f3c463a0d5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
class AddSectionNameIdIndexOnCiBuildTraceSections < ActiveRecord::Migration[4.2]
include Gitlab::Database::MigrationHelpers
# Set this constant to true if this migration requires downtime.
DOWNTIME = false
INDEX_NAME = 'index_ci_build_trace_sections_on_section_name_id'
disable_ddl_transaction!
def up
add_concurrent_index :ci_build_trace_sections, :section_name_id, name: INDEX_NAME
end
def down
remove_concurrent_index :ci_build_trace_sections, :section_name_id, name: INDEX_NAME
end
end
|