mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 15:13:21 +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
|