summaryrefslogtreecommitdiff
path: root/db/post_migrate/20191031112603_remove_limits_from_plans.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/post_migrate/20191031112603_remove_limits_from_plans.rb')
-rw-r--r--db/post_migrate/20191031112603_remove_limits_from_plans.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/post_migrate/20191031112603_remove_limits_from_plans.rb b/db/post_migrate/20191031112603_remove_limits_from_plans.rb
new file mode 100644
index 00000000000..30fb6a9d193
--- /dev/null
+++ b/db/post_migrate/20191031112603_remove_limits_from_plans.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class RemoveLimitsFromPlans < ActiveRecord::Migration[5.2]
+ DOWNTIME = false
+
+ def up
+ remove_column :plans, :active_pipelines_limit
+ remove_column :plans, :pipeline_size_limit
+ remove_column :plans, :active_jobs_limit
+ end
+
+ def down
+ add_column :plans, :active_pipelines_limit, :integer
+ add_column :plans, :pipeline_size_limit, :integer
+ add_column :plans, :active_jobs_limit, :integer
+ end
+end