diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-12 21:06:57 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-11-12 21:06:57 +0300 |
commit | 6d31b8f052d30b7e55128d17b66bceed8c6065a9 (patch) | |
tree | ca428cf6145af7cfaada94378e66bd5e7cc5a429 /db/migrate/20191030135044_create_plan_limits.rb | |
parent | 69944ffb68788d190e81ff7e33db5dcb6c903184 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'db/migrate/20191030135044_create_plan_limits.rb')
-rw-r--r-- | db/migrate/20191030135044_create_plan_limits.rb | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/db/migrate/20191030135044_create_plan_limits.rb b/db/migrate/20191030135044_create_plan_limits.rb new file mode 100644 index 00000000000..291d9824f6d --- /dev/null +++ b/db/migrate/20191030135044_create_plan_limits.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class CreatePlanLimits < ActiveRecord::Migration[5.2] + DOWNTIME = false + + def change + create_table :plan_limits, id: false do |t| + t.references :plan, foreign_key: { on_delete: :cascade }, null: false, index: { unique: true } + t.integer :ci_active_pipelines, null: false, default: 0 + t.integer :ci_pipeline_size, null: false, default: 0 + t.integer :ci_active_jobs, null: false, default: 0 + end + end +end |