Skip to content

Autocorrect for FactoryBot/IdSequence is NOT SAFE when ids are not generated automatically #134

@kyori19

Description

@kyori19

Removing sequence(:id) automatically breaks the factory, not only for non-database POROs, but also DB models with id is not generated. According to the issue thoughtbot/factory_bot_rails#438, such models exist on some applications. Thus, I think FactoryBot/IdSequence should not be marked as SAFE.

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