summaryrefslogtreecommitdiff
path: root/db/migrate/20191121193110_add_issue_links_type.rb
blob: 61ef2e7d7e855e54f18f846de6479335e2c5bfeb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class AddIssueLinksType < ActiveRecord::Migration[5.1]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_column_with_default :issue_links, :link_type, :integer, default: 0, limit: 2
  end

  def down
    remove_column :issue_links, :link_type
  end
end