2019-07-01 18:44:16 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
class AddStrategiesToOperationsFeatureFlagScopes < ActiveRecord::Migration[5.1]
|
|
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
|
|
|
|
DOWNTIME = false
|
|
|
|
|
|
|
|
disable_ddl_transaction!
|
|
|
|
|
|
|
|
def up
|
2019-12-27 18:08:12 +00:00
|
|
|
add_column_with_default :operations_feature_flag_scopes, :strategies, :jsonb, default: [{ name: "default", parameters: {} }] # rubocop:disable Migration/AddColumnWithDefault
|
2019-07-01 18:44:16 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:operations_feature_flag_scopes, :strategies)
|
|
|
|
end
|
|
|
|
end
|