Tweaked custom migration template to use sprintf function to insert class name.