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

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

class AddTextLimitToWebHooksAttributes < Gitlab::Database::Migration[2.2]
  milestone '16.9'

  disable_ddl_transaction!

  def up
    add_text_limit :web_hooks, :name, 255
    add_text_limit :web_hooks, :description, 2048
  end

  def down
    remove_text_limit :web_hooks, :name
    remove_text_limit :web_hooks, :description
  end
end