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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20220721065723_add_issue_branch_template_to_project_settings.rb')
-rw-r--r--db/migrate/20220721065723_add_issue_branch_template_to_project_settings.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20220721065723_add_issue_branch_template_to_project_settings.rb b/db/migrate/20220721065723_add_issue_branch_template_to_project_settings.rb
new file mode 100644
index 00000000000..d65bd2c21e7
--- /dev/null
+++ b/db/migrate/20220721065723_add_issue_branch_template_to_project_settings.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddIssueBranchTemplateToProjectSettings < Gitlab::Database::Migration[2.0]
+ disable_ddl_transaction!
+
+ def up
+ with_lock_retries do
+ add_column :project_settings, :issue_branch_template, :text, if_not_exists: true
+ end
+
+ add_text_limit :project_settings, :issue_branch_template, 255
+ end
+
+ def down
+ remove_column :project_settings, :issue_branch_template, if_exists: true
+ end
+end