I have set up a database for a Fitness Gym. I was testing something this morning and ran into a problem with referential integrity, I'm not sure if I should be enforcing it for these particular relationships now or not.
I want it so that, if a class is deleted from the gym - it does not cascade delete - I want the history to show up for the members that enrolled in this class in the past.
However - b/c I have a many to many relationship table set up that links Registrations and Classes together - it won't let me delete the class unless it no longer exists in the join table as it voilates referential integrity.
So I just not be enforcing referential integrity in this case or is there a solution that I don't know about? Thanks!!