scinote-web/app/models/result_text.rb

8 lines
161 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
class ResultText < ActiveRecord::Base
validates :text, presence: true
validates :result, presence: true
belongs_to :result, inverse_of: :result_text
end