gitlab-org--gitlab-foss/db/migrate/20210930081208_fix_deprecated_api_throttle_defaults.rb

8 lines
388 B
Ruby

# frozen_string_literal: true
class FixDeprecatedApiThrottleDefaults < Gitlab::Database::Migration[1.0]
def change
change_column_default :application_settings, :throttle_unauthenticated_deprecated_api_requests_per_period, from: 3600, to: 1800
change_column_default :application_settings, :throttle_authenticated_deprecated_api_period_in_seconds, from: 1800, to: 3600
end
end