summaryrefslogtreecommitdiff
path: root/app/models/deployment.rb
diff options
context:
space:
mode:
authorZ.J. van de Weg <zegerjan@gitlab.com>2016-10-19 14:49:09 +0200
committerZ.J. van de Weg <zegerjan@gitlab.com>2016-10-20 14:17:22 +0200
commitc1212beaa495b5b0c3b805bb1b2a7bdc6d1a941b (patch)
tree5a99eca6e6047a13ab71159a6c16ae50ba78b382 /app/models/deployment.rb
parentba2d5b16028e0b8430f7297372a9b82fbd006fd7 (diff)
downloadgitlab-ce-c1212beaa495b5b0c3b805bb1b2a7bdc6d1a941b.tar.gz
Use deployment IID when saving refs
Diffstat (limited to 'app/models/deployment.rb')
-rw-r--r--app/models/deployment.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/deployment.rb b/app/models/deployment.rb
index 1f8c5fb3d85..c843903877b 100644
--- a/app/models/deployment.rb
+++ b/app/models/deployment.rb
@@ -102,6 +102,6 @@ class Deployment < ActiveRecord::Base
private
def ref_path
- File.join(environment.ref_path, 'deployments', id.to_s)
+ File.join(environment.ref_path, 'deployments', iid.to_s)
end
end