diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-14 13:51:12 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-14 13:51:12 +0200 |
commit | 3ade826065f38e3734090cf34fbfc28b68ba79d0 (patch) | |
tree | 8894c90dc892086df16782f2c54ca8f6b8b4adb6 /app/models/deployment.rb | |
parent | e8f09f02bf8b0053f276a8e5ce0bdd18c621a1a3 (diff) | |
download | gitlab-ce-3ade826065f38e3734090cf34fbfc28b68ba79d0.tar.gz |
Add specs for models and services
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 7cdfc740441..44a0a7fdd10 100644 --- a/app/models/deployment.rb +++ b/app/models/deployment.rb @@ -8,6 +8,8 @@ class Deployment < ActiveRecord::Base validates_presence_of :sha validates_presence_of :ref + validates_associated :project + validates_associated :environment delegate :name, to: :environment, prefix: true |