Delete bookings when a course is deleted and detroy and rebuild them when editing a course