mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-01-07 16:09:57 +08:00
5 lines
143 B
Ruby
5 lines
143 B
Ruby
class StepComment < Comment
|
|
belongs_to :step, foreign_key: :associated_id, inverse_of: :step_comments
|
|
|
|
validates :step, presence: true
|
|
end
|