2016-02-12 23:52:43 +08:00
|
|
|
class Log < ActiveRecord::Base
|
|
|
|
validates :message, presence: true
|
2017-01-24 23:34:21 +08:00
|
|
|
validates :team, presence: true
|
2016-02-12 23:52:43 +08:00
|
|
|
|
2017-01-24 23:34:21 +08:00
|
|
|
belongs_to :team, inverse_of: :logs
|
2016-02-12 23:52:43 +08:00
|
|
|
end
|