Migrations are a good place to store code for an update. If it’s an update that will take a while I might use the migration to enqueue a job.