A little code to make it easier to run migrations programmatically.