tidy up MigrationsController.