Yeah, I also haven't managed to cascade delete the 'capacities' themself, just 'rack_capacities', so I removing them in a DB transaction in 'delete_rack' method...