scinote-web/app/models/log.rb

7 lines
161 B
Ruby
Raw Normal View History

2016-02-12 23:52:43 +08:00
class Log < ActiveRecord::Base
validates :message, presence: true
validates :organization, presence: true
belongs_to :organization, inverse_of: :logs
end