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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
388 B
Ruby
Raw Normal View History

# 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