Commit 94f56232 authored by Matija Čupić's avatar Matija Čupić

Insert dotenv application limits

parent 86c84fc4
# frozen_string_literal: true
class InsertDotenvApplicationLimits < Gitlab::Database::Migration[1.0]
def up
create_or_update_plan_limit('dotenv_variables', 'default', 150)
create_or_update_plan_limit('dotenv_variables', 'free', 50)
create_or_update_plan_limit('dotenv_variables', 'opensource', 150)
create_or_update_plan_limit('dotenv_variables', 'premium', 100)
create_or_update_plan_limit('dotenv_variables', 'premium_trial', 100)
create_or_update_plan_limit('dotenv_variables', 'ultimate', 150)
create_or_update_plan_limit('dotenv_variables', 'ultimate_trial', 150)
create_or_update_plan_limit('dotenv_size', 'default', 5.kilobytes)
end
def down
create_or_update_plan_limit('dotenv_variables', 'default', 20)
create_or_update_plan_limit('dotenv_variables', 'free', 20)
create_or_update_plan_limit('dotenv_variables', 'opensource', 20)
create_or_update_plan_limit('dotenv_variables', 'premium', 20)
create_or_update_plan_limit('dotenv_variables', 'premium_trial', 20)
create_or_update_plan_limit('dotenv_variables', 'ultimate', 20)
create_or_update_plan_limit('dotenv_variables', 'ultimate_trial', 20)
create_or_update_plan_limit('dotenv_size', 'default', 5.kilobytes)
end
end
911cc21de320d0d5716ce80ebca56433b793c2072cb62da783605c99bb9aada9
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment