debian-mirror-gitlab/db/migrate/20170815221154_add_discussion_locked_to_issuable.rb
2019-02-15 15:39:39 +05:30

13 lines
342 B
Ruby

class AddDiscussionLockedToIssuable < ActiveRecord::Migration[4.2]
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