purify migration file