mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-12 12:16:06 +08:00
7 lines
161 B
Ruby
7 lines
161 B
Ruby
|
class Log < ActiveRecord::Base
|
||
|
validates :message, presence: true
|
||
|
validates :organization, presence: true
|
||
|
|
||
|
belongs_to :organization, inverse_of: :logs
|
||
|
end
|