Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20170815221154_add_discussion_locked_to_issuable.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5bd777c53a0abf6e1bc8cb3435c86a79c209ae53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
class AddDiscussionLockedToIssuable < ActiveRecord::Migration
  DOWNTIME = false

  def up
    add_column(:merge_requests, :discussion_locked, :boolean)
    add_column(:issues, :discussion_locked, :boolean)
  end

  def down
    remove_column(:merge_requests, :discussion_locked)
    remove_column(:issues, :discussion_locked)
  end
end