debian-mirror-gitlab/db/migrate/20161018024550_remove_priority_from_labels.rb
2016-11-03 12:29:30 +05:30

17 lines
399 B
Ruby

class RemovePriorityFromLabels < ActiveRecord::Migration
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