rewrite migrations into one file