summaryrefslogtreecommitdiff
path: root/spec/factories
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-08 17:17:06 +0200
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-09 09:54:19 +0200
commit4c2cf90780632db93ac7a39513277f17f4bc3da8 (patch)
tree9e4be7f7ea27d065596c9766566c58a0a030efe5 /spec/factories
parent2de674483aa881461d7afc55ee0d2fd7d9685806 (diff)
downloadgitlab-ce-4c2cf90780632db93ac7a39513277f17f4bc3da8.tar.gz
Add DB constraint ci_runners.runner_type not null
Diffstat (limited to 'spec/factories')
-rw-r--r--spec/factories/ci/runners.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/factories/ci/runners.rb b/spec/factories/ci/runners.rb
index 34b8b246d0f..cdc170b9ccb 100644
--- a/spec/factories/ci/runners.rb
+++ b/spec/factories/ci/runners.rb
@@ -6,6 +6,7 @@ FactoryBot.define do
is_shared false
active true
access_level :not_protected
+ runner_type :project_type
trait :online do
contacted_at Time.now
@@ -13,6 +14,7 @@ FactoryBot.define do
trait :shared do
is_shared true
+ runner_type :instance_type
end
trait :specific do