Ruby on Rails - How to represent "has_many" with enums?
There is a Gem called enumerate it that lists the database in such collections. So I would use it to list different days of the week.
With enumerated values, I would create this relationship:
And I would put two columns there:
and the numeric equivalent of week_day.
If you are using a noSQL database like mongoDB you can add weekdays as an array or inline in a record so no extra table is needed.
source to share