Skip to content
This repository was archived by the owner on Dec 12, 2021. It is now read-only.
This repository was archived by the owner on Dec 12, 2021. It is now read-only.

Doesn't respect column defaults #25

@avit

Description

@avit

If I've set a column default in my schema, populator won't set the attribute value and will try saving it as NULL. This causes errors when a column is not nullable.

Looking at the code, Populator::Record only looks at the column names, and anything that's not explicitly set by the user will be set to NULL. How about if we make it use the defaults from the schema too?

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