fix association between AppItem and Ranking to many-to-many