2018-12-23 12:14:25 +05:30
|
|
|
class AddDiscussionLockedToIssuable < ActiveRecord::Migration[4.2]
|
2018-03-17 18:26:18 +05:30
|
|
|
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
|