Skip to content

really_destroy! on deleted record with a has_one association #414

@studious

Description

@studious

I'm trying to call really_destroy! on a record that has already been destroyed. The trouble is that it has a 'has_one' association and when that has_one is not deleted the parent record can't either due to a foreign key constraint.

I can see recursive restore handles 'has_one' association but really_destroy doesn't appear to. There is a comment about has_one returning nil and at this point

What's the best way to achieve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions