debian-mirror-gitlab/db/migrate/20211108154841_insert_pipeline_triggers_application_limits.rb

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

24 lines
1.1 KiB
Ruby
Raw Normal View History

2021-12-11 22:18:48 +05:30
# frozen_string_literal: true
class InsertPipelineTriggersApplicationLimits < Gitlab::Database::Migration[1.0]
def up
create_or_update_plan_limit('pipeline_triggers', 'default', 0)
create_or_update_plan_limit('pipeline_triggers', 'free', 25_000)
create_or_update_plan_limit('pipeline_triggers', 'opensource', 0)
create_or_update_plan_limit('pipeline_triggers', 'premium', 0)
create_or_update_plan_limit('pipeline_triggers', 'premium_trial', 0)
create_or_update_plan_limit('pipeline_triggers', 'ultimate', 0)
create_or_update_plan_limit('pipeline_triggers', 'ultimate_trial', 0)
end
def down
create_or_update_plan_limit('pipeline_triggers', 'default', 0)
create_or_update_plan_limit('pipeline_triggers', 'free', 0)
create_or_update_plan_limit('pipeline_triggers', 'opensource', 0)
create_or_update_plan_limit('pipeline_triggers', 'premium', 0)
create_or_update_plan_limit('pipeline_triggers', 'premium_trial', 0)
create_or_update_plan_limit('pipeline_triggers', 'ultimate', 0)
create_or_update_plan_limit('pipeline_triggers', 'ultimate_trial', 0)
end
end