debian-mirror-gitlab/db/migrate/20210914145810_add_throttle_deprecated_api_columns.rb

14 lines
918 B
Ruby
Raw Normal View History

2021-11-18 22:05:49 +05:30
# frozen_string_literal: true
class AddThrottleDeprecatedApiColumns < Gitlab::Database::Migration[1.0]
def change
add_column :application_settings, :throttle_unauthenticated_deprecated_api_requests_per_period, :integer, default: 3600, null: false
add_column :application_settings, :throttle_unauthenticated_deprecated_api_period_in_seconds, :integer, default: 3600, null: false
add_column :application_settings, :throttle_unauthenticated_deprecated_api_enabled, :boolean, default: false, null: false
add_column :application_settings, :throttle_authenticated_deprecated_api_requests_per_period, :integer, default: 3600, null: false
add_column :application_settings, :throttle_authenticated_deprecated_api_period_in_seconds, :integer, default: 1800, null: false
add_column :application_settings, :throttle_authenticated_deprecated_api_enabled, :boolean, default: false, null: false
end
end