diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-09 09:57:16 +0200 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2018-05-09 09:57:16 +0200 |
commit | 89ec120f61f8becb79403e7ad0a26fc8b942b57b (patch) | |
tree | b10bf82d123f387c83ea2b12bbfea93259fcad67 /app/models/ci/runner.rb | |
parent | 4c2cf90780632db93ac7a39513277f17f4bc3da8 (diff) | |
download | gitlab-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.rb | 1 |
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 |