2018-03-17 18:26:18 +05:30
|
|
|
# rubocop:disable Migration/RemoveColumn
|
2019-02-15 15:39:39 +05:30
|
|
|
class RemovePriorityFromLabels < ActiveRecord::Migration[4.2]
|
2016-11-03 12:29:30 +05:30
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = true
|
|
|
|
DOWNTIME_REASON = 'This migration removes an existing column'
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
|
|
|
remove_column :labels, :priority, :integer, index: true
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
add_column :labels, :priority, :integer
|
|
|
|
add_concurrent_index :labels, :priority
|
|
|
|
end
|
|
|
|
end
|