Skip to content

ActiveRecord::RecordNotUnique #285

Open
@techleon

Description

@techleon

Hi,

we keep getting this error in our production environment.
eg.
ActiveRecord::RecordNotUnique: Mysql2::Error: Duplicate entry '800291-800291-0' for key 'entry_anc_desc_idx': INSERT INTO entry_hierarchies (ancestor_id, descendant_id, generations) VALUES (800291, 800291, 0)

Here entry_hierarchies is the hierarchies table. We have tried several solutions and feel that this could be a bug in the gem, let us know if this is an issue

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions