scinote-web/app/models/result_comment.rb

6 lines
151 B
Ruby
Raw Normal View History

class ResultComment < Comment
belongs_to :result, foreign_key: :associated_id, inverse_of: :result_comments
2016-02-12 23:52:43 +08:00
validates :result, presence: true
2016-02-12 23:52:43 +08:00
end