Serialize merged migration history