set up the associations for ratings