Removing projects should remove uploads efficiently
Currently removing a project will result in associated uploads being removed by Rails, using 1 `DELETE` query per associated row. This should be changed so that the database data is removed using a foreign key's ON DELETE CASCADE constraint. Associated file system data should preferably be removed using as few `rm` calls as possible, if possible by just doing an `rm -rf` on the uploads directory of the project (if uploads are scoped to a project directory).
issue