Commit cb8b9c3f authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Add association and validation for Release model

Signed-off-by: default avatarDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
parent 962b57df
class Release < ActiveRecord::Base class Release < ActiveRecord::Base
belongs_to :project
validates :description, :project, presence: true
end end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment