2020-01-01 13:55:28 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddCommentActionsToServices < ActiveRecord::Migration[5.2]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
2020-04-22 19:07:51 +05:30
|
|
|
# rubocop:disable Migration/AddColumnWithDefault
|
|
|
|
# rubocop:disable Migration/UpdateLargeTable
|
2020-01-01 13:55:28 +05:30
|
|
|
def up
|
2020-04-08 14:13:33 +05:30
|
|
|
add_column_with_default(:services, :comment_on_event_enabled, :boolean, default: true)
|
2020-01-01 13:55:28 +05:30
|
|
|
end
|
2020-04-22 19:07:51 +05:30
|
|
|
# rubocop:enable Migration/AddColumnWithDefault
|
|
|
|
# rubocop:enable Migration/UpdateLargeTable
|
2020-01-01 13:55:28 +05:30
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:services, :comment_on_event_enabled)
|
|
|
|
end
|
|
|
|
end
|