Fixed #23294 -- Add related_name to existing migrations.

Refs #23288

Thanks to Florian Apolloner for the review.