diff options
Diffstat (limited to 'db/migrate/20221101032600_add_text_limit_to_default_preferred_language_on_application_settings.rb')
-rw-r--r-- | db/migrate/20221101032600_add_text_limit_to_default_preferred_language_on_application_settings.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20221101032600_add_text_limit_to_default_preferred_language_on_application_settings.rb b/db/migrate/20221101032600_add_text_limit_to_default_preferred_language_on_application_settings.rb new file mode 100644 index 00000000000..1f6b9815b93 --- /dev/null +++ b/db/migrate/20221101032600_add_text_limit_to_default_preferred_language_on_application_settings.rb @@ -0,0 +1,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 |