scinote-web/app/models/step_comment.rb

8 lines
187 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class StepComment < Comment
belongs_to :step, foreign_key: :associated_id, inverse_of: :step_comments, touch: true
2016-02-12 23:52:43 +08:00
validates :step, presence: true
2016-02-12 23:52:43 +08:00
end