debian-mirror-gitlab/db/migrate/20230321161441_insert_project_access_token_limit.rb

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

16 lines
526 B
Ruby
Raw Normal View History

2023-06-20 00:43:36 +05:30
# frozen_string_literal: true
class InsertProjectAccessTokenLimit < Gitlab::Database::Migration[2.1]
restrict_gitlab_migration gitlab_schema: :gitlab_main
def up
create_or_update_plan_limit('project_access_token_limit', 'premium_trial', 1)
create_or_update_plan_limit('project_access_token_limit', 'ultimate_trial', 1)
end
def down
create_or_update_plan_limit('project_access_token_limit', 'premium_trial', 0)
create_or_update_plan_limit('project_access_token_limit', 'ultimate_trial', 0)
end
end