Add RewriteAll() method and Migration resource