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

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

class AddTextLimitToDefaultPreferredLanguageOnApplicationSettings < Gitlab::Database::Migration[2.0]
  MAXIMUM_LIMIT = 32

  disable_ddl_transaction!

  def up
    add_text_limit :application_settings, :default_preferred_language, MAXIMUM_LIMIT
  end

  def down
    remove_text_limit :application_settings, :default_preferred_language
  end
end