gitlab-org--gitlab-foss/db/migrate/20190211131150_add_state_id_to_issuables.rb
2019-02-14 16:33:26 -02:00

17 lines
391 B
Ruby

# frozen_string_literal: true
class AddStateIdToIssuables < ActiveRecord::Migration[5.0]
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
def up
add_column :issues, :state_id, :integer, limit: 2
add_column :merge_requests, :state_id, :integer, limit: 2
end
def down
remove_column :issues, :state_id
remove_column :merge_requests, :state_id
end
end