rewrite migration file