FrancisG-Massey / Capstone2016

4 stars 0 forks source link

Deleting users/traplines should cascade to enrollments #272

Open sam-hunt opened 7 years ago

sam-hunt commented 7 years ago

Trapline-user records have no dependent entities and are deleted completely from the database upon unenrollment rather than being set to inactive.

We should delete a user's trapline enrollments if they are deleted. We should delete a trapline's user enrollments if it is deleted too.

This will reduce database bloat due to inactive trapline-user records which can't be used again.