summaryrefslogtreecommitdiff
path: root/db/migrate/20201021190539_add_text_limit_to_secret_detection_token_revocation_application_settings.rb
blob: ea5e12322d04041ffb30a9bad2c1b394181338ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class AddTextLimitToSecretDetectionTokenRevocationApplicationSettings < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_text_limit :application_settings, :secret_detection_token_revocation_url, 255
  end

  def down
    remove_text_limit :application_settings, :secret_detection_token_revocation_url
  end
end