Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-06-02 00:39:24 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-06-02 00:39:24 +0300
commit5e9687a198f205131d8e65c747f6b4ac2ae092f1 (patch)
tree586553d4fe7aa12291f37d9dfdcb149efc77e16e /app/models/project_auto_devops.rb
parent2de002b3db1bc199755f8be212fa8804fcb80905 (diff)
Add deploy_strategy to ProjectAutoDevops
Diffstat (limited to 'app/models/project_auto_devops.rb')
-rw-r--r--app/models/project_auto_devops.rb5
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) }