fix ordering bug in adding migration to table

closes #3