rebuilt migration for new mysql safe model definition