Commit 2bc18355 authored by Matija Čupić's avatar Matija Čupić

Use 0 continuous default for deploy strategy

parent 637b90db
......@@ -2,8 +2,8 @@ class ProjectAutoDevops < ActiveRecord::Base
belongs_to :project
enum deploy_strategy: {
manual: 0,
continuous: 1
continuous: 0,
manual: 1
}
scope :enabled, -> { where(enabled: true) }
......
......@@ -10,7 +10,7 @@ class AddDeployStrategyToProjectAutoDevops < ActiveRecord::Migration
disable_ddl_transaction!
def up
add_column_with_default :project_auto_devops, :deploy_strategy, :integer, default: 1, allow_null: false
add_column_with_default :project_auto_devops, :deploy_strategy, :integer, default: 0, allow_null: false
end
def down
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment