There is a few ways you could do this. One way you could do it is to have a Session model that stores the day and is related to the Section. Then you could do a Student has many Sessions through Attendances.

There is a few ways you could do this. One way you could do it is to have a Session model that stores the day and is related to the Section. Then you could do a Student has many Sessions through Attendances.