diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-06 06:08:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-06 06:08:08 +0300 |
commit | a6011c3d70e0e8ac318ba6629183c44f8614c4df (patch) | |
tree | a3d21394d63c47448998c89f01eb88e57c0ed8ce /doc/development/application_limits.md | |
parent | ffc757a7a92535559c20eb706593f7358d9bf589 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/application_limits.md')
-rw-r--r-- | doc/development/application_limits.md | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/doc/development/application_limits.md b/doc/development/application_limits.md index dd07a9cbfb7..f89b238cd79 100644 --- a/doc/development/application_limits.md +++ b/doc/development/application_limits.md @@ -22,22 +22,22 @@ limit values. It's recommended to create separate migration script files. 1. Add new column to the `plan_limits` table with non-null default value 0, eg: - ```ruby - add_column(:plan_limits, :project_hooks, :integer, default: 0, null: false) - ``` + ```ruby + add_column(:plan_limits, :project_hooks, :integer, default: 0, null: false) + ``` - NOTE: **Note:** Plan limits entries set to `0` mean that limits are not - enabled. + NOTE: **Note:** Plan limits entries set to `0` mean that limits are not + enabled. 1. Insert plan limits values into the database using `create_or_update_plan_limit` migration helper, eg: - ```ruby - create_or_update_plan_limit('project_hooks', 'free', 10) - create_or_update_plan_limit('project_hooks', 'bronze', 20) - create_or_update_plan_limit('project_hooks', 'silver', 30) - create_or_update_plan_limit('project_hooks', 'gold', 100) - ``` + ```ruby + create_or_update_plan_limit('project_hooks', 'free', 10) + create_or_update_plan_limit('project_hooks', 'bronze', 20) + create_or_update_plan_limit('project_hooks', 'silver', 30) + create_or_update_plan_limit('project_hooks', 'gold', 100) + ``` ### Plan limits validation |