2019-02-14 13:33:26 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2019-02-11 12:48:37 -05:00
|
|
|
class AddStateIdToIssuables < ActiveRecord::Migration[5.0]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
def up
|
2019-02-13 14:31:14 -05:00
|
|
|
add_column :issues, :state_id, :integer, limit: 2
|
|
|
|
add_column :merge_requests, :state_id, :integer, limit: 2
|
2019-02-11 12:48:37 -05:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column :issues, :state_id
|
|
|
|
remove_column :merge_requests, :state_id
|
|
|
|
end
|
|
|
|
end
|