diff options
author | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2019-08-26 10:42:02 +0300 |
---|---|---|
committer | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2019-08-26 10:42:02 +0300 |
commit | d00f028aac0f8ddeef7007173b8ac69c5d74c4a2 (patch) | |
tree | d447d11194950fe160b39d846ed455d8b89ae68e /db/migrate | |
parent | bc1902190f608a1537b8fb7184463422e4a49c20 (diff) | |
parent | f8edf116c2d55d19cc4077d06498f45c44dbe483 (diff) |
Merge branch 'security-add-job-activity-limit-ce-12-2' into '12-2-stable'
Introduce JobActivity limit for alive jobs
See merge request gitlab/gitlabhq!3343
Diffstat (limited to 'db/migrate')
-rw-r--r-- | db/migrate/20190816151221_add_active_jobs_limit_to_plans.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20190816151221_add_active_jobs_limit_to_plans.rb b/db/migrate/20190816151221_add_active_jobs_limit_to_plans.rb new file mode 100644 index 00000000000..951ff41f1a8 --- /dev/null +++ b/db/migrate/20190816151221_add_active_jobs_limit_to_plans.rb @@ -0,0 +1,17 @@ +# frozen_string_literal: true + +class AddActiveJobsLimitToPlans < ActiveRecord::Migration[5.2] + include Gitlab::Database::MigrationHelpers + + DOWNTIME = false + + disable_ddl_transaction! + + def up + add_column_with_default :plans, :active_jobs_limit, :integer, default: 0 + end + + def down + remove_column :plans, :active_jobs_limit + end +end |