- Fix migration to update any dependent attendance records first before attempting to delete devices