Update the migration script to generate the thumbnail