catch exception on foreign keys migration