Support for DDL migrations and repeated migrations

I've only tested this with JRuby, but with these changes I can do a full copy to an empty PostgeSQL database, run a bunch of Rails migrations on the PostgreSQL database, then run the copy from MySQL again.