diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-15 16:09:50 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-06-15 16:09:50 +0300 |
commit | 6ace6d940a90e70f89392c3be7d9e538b6cec04c (patch) | |
tree | 203d6a0dc175ce23245ca5f60b56ee8e55657872 /app/models/environment.rb | |
parent | a4dc5f79bf281127fe5e4ace36ac4f7664701e0b (diff) |
Use validate and required for environment and project
Diffstat (limited to 'app/models/environment.rb')
-rw-r--r-- | app/models/environment.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/environment.rb b/app/models/environment.rb index 7986a2529df..ac3a571a1f3 100644 --- a/app/models/environment.rb +++ b/app/models/environment.rb @@ -1,5 +1,5 @@ class Environment < ActiveRecord::Base - belongs_to :project, required: true + belongs_to :project, required: true, validate: true has_many :deployments |