Skip to content

Add not null and unique constraint in member_uid column #311

Closed
@sauloperez

Description

@sauloperez

So far the member_uid has a validation at model level that ensure both: its presence, and its uniqueness by organization. This however does not prevent violations. Since this is not ensured at DB level, race conditions can lead to duplicates.

We should add a unique index plus a not null constraint on that column.

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