2017-09-01 08:03:57 -04:00
|
|
|
class AddDiscussionLockedToIssuable < ActiveRecord::Migration
|
2017-08-30 10:57:50 -04:00
|
|
|
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
|