Cannot run zammad run rake db:migrate after upgrade

You’re affected by this bug:

Very dirty workaround would be the following.

Dangerzone

Dear future anon finding this post

Please be aware that the following operation is dangerous and can potentially harm your installation. Only run this command if you are 1 0 0 0 % SURE you’re affected by the issue described in above linked issue. Have a backup.

zammad run rails r "User.where.not(image_source: nil).update_all(image_source: '')"