scinote-web/app/models/step_comment.rb

9 lines
198 B
Ruby
Raw Normal View History

class StepComment < Comment
2017-06-28 15:21:32 +02:00
belongs_to :step,
foreign_key: :associated_id,
inverse_of: :step_comments,
optional: true
2016-02-12 16:52:43 +01:00
validates :step, presence: true
2016-02-12 16:52:43 +01:00
end