debian-mirror-gitlab/db/migrate/20210601131742_update_web_hook_calls_limit.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
361 B
Ruby
Raw Normal View History

2021-09-04 01:27:46 +05:30
# 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