Add mr_default_title_template column to project_settings (Part 1/4)

Summary

Part 1 of 4 for customizable MR title templates.

Adds the database column, model validation, and delegation for mr_default_title_template.

What does this MR do?

  • Adds mr_default_title_template nullable text column to project_settings with 200-char check constraint
  • Adds MAX_MR_TITLE_TEMPLATE_LENGTH constant to Project
  • Delegates mr_default_title_template from Project to ProjectSetting
  • Adds length validation in ProjectSetting

Database

  • Zero-downtime safe: disable_ddl_transaction!, with_lock_retries, add_text_limit
  • Nullable column, no default value
  • Fully reversible migration
Edited by Marc Shaw

Merge request reports

Loading