blob: 0f27ba9488be08a7b6e81c86f2c380431cd8c4c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# frozen_string_literal: true
class AddMirrorBranchRegexToRemoteMirrors < Gitlab::Database::Migration[2.0]
disable_ddl_transaction!
def up
add_column :remote_mirrors, :mirror_branch_regex, :text
add_text_limit :remote_mirrors, :mirror_branch_regex, 255
end
def down
remove_text_limit :remote_mirrors, :mirror_branch_regex
remove_column :remote_mirrors, :mirror_branch_regex
end
end
|