mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-14 05:05:55 +08:00
7 lines
187 B
Ruby
7 lines
187 B
Ruby
# frozen_string_literal: true
|
|
|
|
class StepComment < Comment
|
|
belongs_to :step, foreign_key: :associated_id, inverse_of: :step_comments, touch: true
|
|
|
|
validates :step, presence: true
|
|
end
|