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

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

class UpdateWebHookCallsLimit < ActiveRecord::Migration[6.0]
  include Gitlab::Database::MigrationHelpers

  def up
    return unless Gitlab.com?

    create_or_update_plan_limit('web_hook_calls', 'free', 120)
  end

  def down
    return unless Gitlab.com?

    create_or_update_plan_limit('web_hook_calls', 'free', 0)
  end
end