New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the code is not robust against deleting a type that's in use #348
Comments
This is true for:
|
As discussed with @hennevogel: We will implement this by overwriting the destroy method! |
Well there are also the various :dependent options for the associations. First look at those |
@hennevogel Yeah, discovered the nice depended: restrict_with_error feature! Event_type was also affected! |
:restrict_with_error is one method of handling this situation but not neccesarrily the one that should be used for everything. This is a web app, we should help people to reach their goals. If I want to delete a difficulty_level I should be able to |
Thanks, guys! |
Hi,
I removed a few track types - some of which were in use. This resulted in invalid track IDs and errors. Perhaps this should be handled a little more elegantly, either make it impossible or set invalid track ID's to 'unset'.
The text was updated successfully, but these errors were encountered: