• Alessio Caiazza's avatar
    Properly delete files when a package is removed · 971fe931
    Alessio Caiazza authored
    Both CarrierWave and ProjectStatistics relies on record deletion to
    cleanup storage and update statistics.
    
    We delete Packages instead of PackageFiles and the record deletion is
    performed by the DB.
    
    This commit introduce a dependent: :destroy on Package-PackageFiles
    relation.
    971fe931
package_spec.rb 3.05 KB