mongoid-grid_fs icon indicating copy to clipboard operation
mongoid-grid_fs copied to clipboard

Chunks not cleaned when removing a file

Open zedtux opened this issue 3 years ago • 0 comments

I have already opened the issue https://github.com/carrierwaveuploader/carrierwave-mongoid/issues/205 where I explain that when deleting a model which has a mounter using the :grid_fs storage engine, the GridFs::File is well destroyed, but the belonging GridFs::Chunk aren't, even do I found the has_many :chunks, ..., dependent: :destroy, ... line in this gem.

I have checked the tests from this gem and I couldn't find one which ensures the chunks are cleaned.

Does anyone had that issue already ?

zedtux avatar Oct 20 '22 08:10 zedtux