scinote-web/app/models/step_comment.rb
2019-06-10 12:24:03 +02:00

8 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