mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-11 18:21:04 +08:00
5 lines
151 B
Ruby
5 lines
151 B
Ruby
class ResultComment < Comment
|
|
belongs_to :result, foreign_key: :associated_id, inverse_of: :result_comments
|
|
|
|
validates :result, presence: true
|
|
end
|