stores a proposal notification

This commit is contained in:
rgarcia
2016-06-01 13:30:44 +02:00
parent 1975018d6a
commit f5375e813d
14 changed files with 155 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
class ProposalNotification < ActiveRecord::Base
belongs_to :author, class_name: 'User', foreign_key: 'author_id'
belongs_to :proposal
validates :title, presence: true
validates :body, presence: true
validates :proposal, presence: true
end