johm/freeskool — comment on commit 4807130d7d38b2ea4e594c54d7b1f292ff8278d9
File: db/migrate/20120202125718_create_sessions.rb line 5
By canweriotnow:

Sounds reasonable. I would suggest using a callback to assign that based on the session_start.to_date, to avoid user error. Then just validate session_start.to_date == session_end.to_date. I already added a different validation on my fork, I'll update it based on that info.