2017-12-11 11:34:51 -05:00
|
|
|
# rubocop:disable Migration/RemoveColumn
|
2018-11-13 02:27:31 -05:00
|
|
|
class RemovePriorityFromLabels < ActiveRecord::Migration[4.2]
|
2016-10-17 22:56:05 -04:00
|
|
|
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
|