summaryrefslogtreecommitdiff
path: root/db/migrate/20211111164047_add_squash_commit_template_limit_to_project_settings.rb
blob: 578d2271d60138bf3715cac1547cb8b9b7bb46c1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class AddSquashCommitTemplateLimitToProjectSettings < Gitlab::Database::Migration[1.0]
  disable_ddl_transaction!

  def up
    add_text_limit :project_settings, :squash_commit_template, 500
  end

  def down
    remove_text_limit :project_settings, :squash_commit_template
  end
end