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
The issue is if I try to update my record with form and image has same name (I do not even change anything else in my record), carrierwave with rails hit update on database even if array of images wasn't changed. Moreover, I use paper trail in my project so it creates unnecessary db record.
I inspect rails behaviour with before_save callback and byebug:
Hi there.
Chunk of my migration:
Mounting:
Uploader:
The issue is if I try to update my record with form and image has same name (I do not even change anything else in my record), carrierwave with rails hit update on database even if array of images wasn't changed. Moreover, I use paper trail in my project so it creates unnecessary db record.
I inspect rails behaviour with
before_save
callback and byebug:Logs of request:
Or even if I just use irb:
Does anyone know how to fix it properly?
The text was updated successfully, but these errors were encountered: