Make deploy_strategy zero based

This commit is contained in:
Matija Čupić 2018-06-06 18:58:26 +02:00
parent 41c17bdb57
commit 9738b0a42b
No known key found for this signature in database
GPG Key ID: 4BAF84FFACD2E5DE
1 changed files with 2 additions and 2 deletions

View File

@ -2,8 +2,8 @@ class ProjectAutoDevops < ActiveRecord::Base
belongs_to :project
enum deploy_strategy: {
manual: 1,
continuous: 2
manual: 0,
continuous: 1
}
scope :enabled, -> { where(enabled: true) }