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

20200420172113_add_text_limit_to_sprints_title.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 17707cc9dd1e1966e10157f70e0ba3a4341e05a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

class AddTextLimitToSprintsTitle < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  CONSTRAINT_NAME = 'sprints_title'

  def up
    add_text_limit :sprints, :title, 255, constraint_name: CONSTRAINT_NAME
  end

  def down
    remove_check_constraint :sprints, CONSTRAINT_NAME
  end
end