now migrate use before and after migrates once

no more need to clean before and after migrates when submit new version. Add before and after and they are executed once