Safer Deletion with dependent: :restrict_with_error

8346
0

Sometimes cascading deletes are the wrong UX and the wrong ops story. Restrict deletion when children exist and provide a user-facing error. This prevents data loss accidents.