Skip to content

Version increment should be atomic #7

Description

@pedroteixeira

Hi,
The current strategy is not very safe. The following line:

version_number = new_record? ? 1 : version + 1

could be executed on the DB to guarantee consistency.
Has anyone thought about this?

thanks,
Pedro

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions