diff options
author | Matija Čupić <matteeyah@gmail.com> | 2018-06-01 23:39:24 +0200 |
---|---|---|
committer | Matija Čupić <matteeyah@gmail.com> | 2018-06-01 23:39:24 +0200 |
commit | 5e9687a198f205131d8e65c747f6b4ac2ae092f1 (patch) | |
tree | 586553d4fe7aa12291f37d9dfdcb149efc77e16e /app/models/project_auto_devops.rb | |
parent | 2de002b3db1bc199755f8be212fa8804fcb80905 (diff) | |
download | gitlab-ce-5e9687a198f205131d8e65c747f6b4ac2ae092f1.tar.gz |
Add deploy_strategy to ProjectAutoDevops
Diffstat (limited to 'app/models/project_auto_devops.rb')
-rw-r--r-- | app/models/project_auto_devops.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/models/project_auto_devops.rb b/app/models/project_auto_devops.rb index ed6c1eddbc1..8464b1d9157 100644 --- a/app/models/project_auto_devops.rb +++ b/app/models/project_auto_devops.rb @@ -1,6 +1,11 @@ class ProjectAutoDevops < ActiveRecord::Base belongs_to :project + enum deploy_strategy: { + manual: 1, + continuous: 2 + } + scope :enabled, -> { where(enabled: true) } scope :disabled, -> { where(enabled: false) } |