Changed copy_file call to generate migration method