scinote-web/app/models/log.rb
2016-02-12 16:52:43 +01:00

6 lines
161 B
Ruby

class Log < ActiveRecord::Base
validates :message, presence: true
validates :organization, presence: true
belongs_to :organization, inverse_of: :logs
end