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
|