Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKamil Trzcinski <ayufan@ayufan.eu>2016-06-15 16:09:50 +0300
committerKamil Trzcinski <ayufan@ayufan.eu>2016-06-15 16:09:50 +0300
commit6ace6d940a90e70f89392c3be7d9e538b6cec04c (patch)
tree203d6a0dc175ce23245ca5f60b56ee8e55657872 /app/models/environment.rb
parenta4dc5f79bf281127fe5e4ace36ac4f7664701e0b (diff)
Use validate and required for environment and project
Diffstat (limited to 'app/models/environment.rb')
-rw-r--r--app/models/environment.rb2
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