Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-08-30 00:33:50 +0300
committerGitLab Release Tools Bot <robert+release-tools@gitlab.com>2019-08-30 00:33:50 +0300
commita69aebcd2c7edbe7fba1bd4aa583b3a8d3a11cdf (patch)
treeb9aa7bcda7dfdad7025e486582152826146f0620 /db/migrate
parent61c9f078022304dc9038797a4bab043702338e1b (diff)
parent45c5144e36e73c80e34282dda7b7c1c32a1fc0ea (diff)
Merge branch 'security-add-job-activity-limit-ce' into 'master'
Introduce JobActivity limit for alive jobs Closes gitlab-ee#376 See merge request gitlab/gitlabhq!3339
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20190816151221_add_active_jobs_limit_to_plans.rb17
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