2019-11-01 14:06:00 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddEnabledToGrafanaIntegrations < ActiveRecord::Migration[5.2]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
2020-05-15 11:08:04 -04:00
|
|
|
add_column_with_default( # rubocop:disable Migration/AddColumnWithDefault
|
2019-11-01 14:06:00 -04:00
|
|
|
:grafana_integrations,
|
|
|
|
:enabled,
|
|
|
|
:boolean,
|
|
|
|
allow_null: false,
|
|
|
|
default: false
|
|
|
|
)
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:grafana_integrations, :enabled)
|
|
|
|
end
|
|
|
|
end
|