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

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

class AddSecurityTxtContentToApplicationSettings < Gitlab::Database::Migration[2.2]
  milestone '16.7'
  disable_ddl_transaction!

  def up
    with_lock_retries do
      add_column :application_settings, :security_txt_content, :text, if_not_exists: true
    end

    add_text_limit :application_settings, :security_txt_content, 2048
  end

  def down
    with_lock_retries do
      remove_column :application_settings, :security_txt_content, if_exists: true
    end
  end
end