Ensure migrations are properly ordered