Add more fields to workout
This commit is contained in:
parent
6b377a577e
commit
1fc9dda21f
9 changed files with 57 additions and 5 deletions
|
@ -1,3 +1,5 @@
|
|||
class Workout < ActiveRecord::Base
|
||||
DAY_TYPES = %w(heavy medium light)
|
||||
validates_date :date
|
||||
validates_inclusion_of :day_type, :in => Workout::DAY_TYPES
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue