2019-11-26 07:06:18 -05:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddCommentActionsToServices < ActiveRecord::Migration[5.2]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2020-03-18 14:09:35 -04:00
|
|
|
# rubocop:disable Migration/AddColumnWithDefault
|
|
|
|
# rubocop:disable Migration/UpdateLargeTable
|
2019-11-26 07:06:18 -05:00
|
|
|
def up
|
2020-02-27 16:09:17 -05:00
|
|
|
add_column_with_default(:services, :comment_on_event_enabled, :boolean, default: true)
|
2019-11-26 07:06:18 -05:00
|
|
|
end
|
2020-03-18 14:09:35 -04:00
|
|
|
# rubocop:enable Migration/AddColumnWithDefault
|
|
|
|
# rubocop:enable Migration/UpdateLargeTable
|
2019-11-26 07:06:18 -05:00
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:services, :comment_on_event_enabled)
|
|
|
|
end
|
|
|
|
end
|