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!
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:services, :deployment_events)
|
|
|
|
end
|
|
|
|
end
|