Referential integrity for polymorphic Rails models.