foreign key migration and relation between categories and posts