stores a proposal notification
This commit is contained in:
8
app/models/proposal_notification.rb
Normal file
8
app/models/proposal_notification.rb
Normal 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
|
||||
Reference in New Issue
Block a user