creates associations with :through clause