if the grade on each problem separate you don't need to but a relaten belong_to assignment as we each Assignment problem belongs_to assignment .