Skip to content

Is there a feature to restore a deleted entity, restoring it from the last record of the history? #369

@gridanjbf

Description

@gridanjbf

Suggestion

def rollback_deletion( id)
 h = Entity::History.where(id: id).last
 Entity.create(h.attributes.except("hid", "recorded_at", "validity"))

end

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions