You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our migrations are failing on the current integration_postmigration branch. This is due to attachments not having corresponsing blobs. I have the code I used to resolve this below:
ActiveStorage::Attachment.all.each do |asa|
asb = ActiveStorage::Blob.find_by(id: asa.blob_id)
asa.delete unless asb.present?
end
This should be put in the get_me_off_of_fedora rake task in the phase 1 branch.
I'm curious if the logo_id is cleared out of the item/thesis if one of these attachments missing a blob is a thumbnail. There is also an activestorageattachment.purge I believe (might be worth looking into the differences).
Our migrations are failing on the current integration_postmigration branch. This is due to attachments not having corresponsing blobs. I have the code I used to resolve this below:
This should be put in the get_me_off_of_fedora rake task in the phase 1 branch.
I'm curious if the logo_id is cleared out of the item/thesis if one of these attachments missing a blob is a thumbnail. There is also an activestorageattachment.purge I believe (might be worth looking into the differences).
relates to #1685
The text was updated successfully, but these errors were encountered: