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

20210101110640_set_limit_for_rate_limiting_response_text.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b72f2ae7d702aff39597aac12461485336831485 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

class SetLimitForRateLimitingResponseText < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers
  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_text_limit :application_settings, :rate_limiting_response_text, 255
  end

  def down
    remove_text_limit :application_settings, :rate_limiting_response_text
  end
end