migrate generate to the last version