Corrected migrations to fix posts foreign issue