Rewrite now actually can write out migrations