Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20210930081208_fix_deprecated_api_throttle_defaults.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: be82b16ee8c1dbb64c1302bcd270f37a2a934564 (plain)
1
2
3
4
5
6
7
8
# 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