diff options
author | Fabio Pitino <fpitino@gitlab.com> | 2019-08-19 17:29:53 +0300 |
---|---|---|
committer | Fabio Pitino <fpitino@gitlab.com> | 2019-08-20 20:18:25 +0300 |
commit | f8edf116c2d55d19cc4077d06498f45c44dbe483 (patch) | |
tree | 3a72d9b4a9a60004f4594afa62cfef177a33a79f /db/migrate | |
parent | 9d301fac4a129875f2eb31b04cedfa37f9dd932e (diff) |
Add active_jobs_limit to plans table
This is a port from EE changes where
we introduce a new limit for Plan model.
https://dev.gitlab.org/gitlab/gitlab-ee/merge_requests/1182
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 |