fix migration file conditional in install generator