summaryrefslogtreecommitdiff
path: root/app/models/release.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/release.rb')
-rw-r--r--app/models/release.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/release.rb b/app/models/release.rb
index 1dc9ce6dd4f..05647839e84 100644
--- a/app/models/release.rb
+++ b/app/models/release.rb
@@ -1,2 +1,5 @@
class Release < ActiveRecord::Base
+ belongs_to :project
+
+ validates :description, :project, presence: true
end