Add association and validation for Release model
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
parent
962b57df5a
commit
cb8b9c3fe2
1 changed files with 3 additions and 0 deletions
|
@ -1,2 +1,5 @@
|
|||
class Release < ActiveRecord::Base
|
||||
belongs_to :project
|
||||
|
||||
validates :description, :project, presence: true
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue