summaryrefslogtreecommitdiff
path: root/db/migrate/20190211131150_add_state_id_to_issuables.rb
blob: c1173eb42490dbaf60a8a28c798e5745b38078d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# 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