2019-04-26 17:08:41 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddDeploymentEventsToServices < ActiveRecord::Migration[5.0]
|
|
|
|
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-04-26 17:08:41 -04:00
|
|
|
def up
|
2020-02-27 16:09:17 -05:00
|
|
|
add_column_with_default(:services, :deployment_events, :boolean, default: false, allow_null: false)
|
2019-04-26 17:08:41 -04:00
|
|
|
end
|
2020-03-18 14:09:35 -04:00
|
|
|
# rubocop:enable Migration/AddColumnWithDefault
|
|
|
|
# rubocop:enable Migration/UpdateLargeTable
|
2019-04-26 17:08:41 -04:00
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:services, :deployment_events)
|
|
|
|
end
|
|
|
|
end
|