Skip to content

Commit

Permalink
Merge pull request #8663 from alphagov/fix-failing-data-migration
Browse files Browse the repository at this point in the history
Fix failing data migration on prod
  • Loading branch information
davidgisbey authored Dec 20, 2023
2 parents 3463eb8 + b438b9f commit c0538dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion db/data_migration/20231115101909_remove_svg_lead_images.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
edition_lead_images = EditionLeadImage.joins(image: :image_data).where("carrierwave_image LIKE '%.svg'")

edition_lead_images.each do |edition_lead_image|
edition = edition_lead_image
edition = edition_lead_image.edition
edition_lead_image.destroy!
edition.update_lead_image
end

0 comments on commit c0538dd

Please sign in to comment.