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
1 changed files with 3 additions and 0 deletions

View File

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