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

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) }