migration for posts table
move code into try clause