17 lines
435 B
Ruby
17 lines
435 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddStrategiesToOperationsFeatureFlagScopes < ActiveRecord::Migration[5.1]
|
|
include Gitlab::Database::MigrationHelpers
|
|
|
|
DOWNTIME = false
|
|
|
|
disable_ddl_transaction!
|
|
|
|
def up
|
|
add_column_with_default :operations_feature_flag_scopes, :strategies, :jsonb, default: [{ name: "default", parameters: {} }]
|
|
end
|
|
|
|
def down
|
|
remove_column(:operations_feature_flag_scopes, :strategies)
|
|
end
|
|
end
|