scinote-web/app/models/task_comment.rb
2017-06-28 15:21:32 +02:00

9 lines
208 B
Ruby

class TaskComment < Comment
belongs_to :my_module,
foreign_key: :associated_id,
inverse_of: :task_comments,
optional: true
validates :my_module, presence: true
end