Skip to content

Introspectively add numeric, >=0, null validations for unsigned columns #24

@saizai

Description

@saizai

It'd be nice if the gem automatically made integer columns have validations (via introspection), e.g.:

validates column, numericality: { only_integer: true, greater_than_or_equal_to: 0, presence: !column_allows_nil }

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