Activate maintenance only if there are migrations