summaryrefslogtreecommitdiff
path: root/app/models/ci/runner.rb
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-09 09:57:16 +0200
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-09 09:57:16 +0200
commit89ec120f61f8becb79403e7ad0a26fc8b942b57b (patch)
treeb10bf82d123f387c83ea2b12bbfea93259fcad67 /app/models/ci/runner.rb
parent4c2cf90780632db93ac7a39513277f17f4bc3da8 (diff)
downloadgitlab-ce-89ec120f61f8becb79403e7ad0a26fc8b942b57b.tar.gz
Add validation Ci::Runner runner_type must be present
Diffstat (limited to 'app/models/ci/runner.rb')
-rw-r--r--app/models/ci/runner.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/ci/runner.rb b/app/models/ci/runner.rb
index 23078f1c3ed..ed8b30dae49 100644
--- a/app/models/ci/runner.rb
+++ b/app/models/ci/runner.rb
@@ -58,6 +58,7 @@ module Ci
validate :tag_constraints
validate :either_projects_or_group
validates :access_level, presence: true
+ validates :runner_type, presence: true
acts_as_taggable