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
|
2020-05-15 15:08:04 +00:00
|
|
|
# rubocop:disable Migration/AddColumnWithDefault
|
2020-02-27 21:09:17 +00:00
|
|
|
add_column_with_default :operations_feature_flag_scopes, :strategies, :jsonb, default: [{ name: "default", parameters: {} }]
|
2020-05-15 15:08:04 +00:00
|
|
|
# rubocop:enable Migration/AddColumnWithDefault
|
2019-07-01 18:44:16 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
remove_column(:operations_feature_flag_scopes, :strategies)
|
|
|
|
end
|
|
|
|
end
|