diff options
Diffstat (limited to 'app/models/deployment.rb')
-rw-r--r-- | app/models/deployment.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb index e0daf692665..0c679a3075b 100644 --- a/app/models/deployment.rb +++ b/app/models/deployment.rb @@ -18,6 +18,8 @@ class Deployment < ApplicationRecord has_many :merge_requests, through: :deployment_merge_requests + has_one :deployment_cluster + has_internal_id :iid, scope: :project, track_if: -> { !importing? }, init: ->(s) do Deployment.where(project: s.project).maximum(:iid) if s&.project end |