change model migrate to safe