summaryrefslogtreecommitdiff
path: root/db/migrate/20200919204155_add_text_limit_to_namespace_settings_default_branch_name.rb
blob: 174a1a9c556119a6169500eea49b8116302d647a (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 AddTextLimitToNamespaceSettingsDefaultBranchName < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  DOWNTIME = false

  disable_ddl_transaction!

  def up
    add_text_limit :namespace_settings, :default_branch_name, 255
  end

  def down
    # Down is required as `add_text_limit` is not reversible
    #
    remove_text_limit :namespace_settings, :default_branch_name
  end
end