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

20230222161954_add_text_limit_to_custom_jira_regex_fields.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 20991e4dffd78584eb9ed4ecf9f26857e0cb33f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

class AddTextLimitToCustomJiraRegexFields < Gitlab::Database::Migration[2.1]
  disable_ddl_transaction!

  def up
    add_text_limit :jira_tracker_data, :jira_issue_prefix, 255
    add_text_limit :jira_tracker_data, :jira_issue_regex, 255
  end

  def down
    remove_text_limit :jira_tracker_data, :jira_issue_regex
    remove_text_limit :jira_tracker_data, :jira_issue_prefix
  end
end