makes correct changes to migrations