Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

validate presence of type as it must not be null

Markus Kahl6c4754188fda
diff --git a/modules/github_integration/app/models/deploy_target.rb b/modules/github_integration/app/models/deploy_target.rb
index decbcf0b11e..92563c45d8b 100644
--- a/modules/github_integration/app/models/deploy_target.rb
+++ b/modules/github_integration/app/models/deploy_target.rb
@@ -34,7 +34,7 @@ class DeployTarget < ApplicationRecord
has_many :deploy_status_checks, dependent: :destroy
validates_presence_of :host
-
+ validates_presence_of :type
# this is very much specific to the only type of target we support for now, OpenProject
validates_presence_of :api_key
end