Add association and validation for Release model

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2015-11-06 15:29:04 +01:00
parent 962b57df5a
commit cb8b9c3fe2
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -1,2 +1,5 @@
class Release < ActiveRecord::Base
belongs_to :project
validates :description, :project, presence: true
end