diff --git a/app/models/release.rb b/app/models/release.rb index 1dc9ce6dd4f5093c1db4473a8e0d33bb8929f97c..05647839e84ea32991f6fea1bad9ca0e5baca449 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