Flattens migrations on all apps.