blob: de33377c8fa6a90c1ee884dce20c750361d03d53 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
class Game < ApplicationRecord
extend Enumerize
audited only: [:status, :progress]
validates :title, presence: true
validates :status, presence: true
enumerize :status,
in: [:playing, :upcoming, :held, :dropped, :finished],
default: :upcoming
end
|