mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-12-31 04:32:06 +08:00
8 lines
198 B
Ruby
8 lines
198 B
Ruby
class StepComment < Comment
|
|
belongs_to :step,
|
|
foreign_key: :associated_id,
|
|
inverse_of: :step_comments,
|
|
optional: true
|
|
|
|
validates :step, presence: true
|
|
end
|