11 lines
340 B
Ruby
11 lines
340 B
Ruby
class UserFeedbackMessage < ActiveRecord::Base
|
|
attr_accessible :journals_for_message_id, :journals_for_message_type, :user_id, :viewed
|
|
|
|
belongs_to :journals_for_message
|
|
belongs_to :user
|
|
|
|
validates :user_id,presence: true
|
|
validates :journals_for_message_id,presence: true
|
|
validates :journals_for_message_type, presence: true
|
|
end
|