diff options
Diffstat (limited to 'db/migrate/20200625190458_add_limit_to_default_branch_name_to_application_settings.rb')
-rw-r--r-- | db/migrate/20200625190458_add_limit_to_default_branch_name_to_application_settings.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20200625190458_add_limit_to_default_branch_name_to_application_settings.rb b/db/migrate/20200625190458_add_limit_to_default_branch_name_to_application_settings.rb new file mode 100644 index 00000000000..b11eb514577 --- /dev/null +++ b/db/migrate/20200625190458_add_limit_to_default_branch_name_to_application_settings.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class AddLimitToDefaultBranchNameToApplicationSettings < ActiveRecord::Migration[6.0] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_text_limit :application_settings, :default_branch_name, 255 + end + + def down + remove_text_limit :application_settings, :default_branch_name + end +end |