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

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

class AddProjectSettingsPreviousDefaultBranchTextLimit < ActiveRecord::Migration[6.1]
  include Gitlab::Database::MigrationHelpers

  disable_ddl_transaction!

  def up
    add_text_limit :project_settings, :previous_default_branch, 4096
  end

  def down
    remove_text_limit :project_settings, :previous_default_branch
  end
end