Add more fields to workout

This commit is contained in:
Andrew Tomaka 2013-08-10 22:15:26 -04:00
parent 6b377a577e
commit 1fc9dda21f
9 changed files with 57 additions and 5 deletions

View file

@ -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