Skip to content

Numeric types have improper scale #178

@keithdoggett

Description

@keithdoggett

In Postgres/CockroachDB if a column is defined with just precision and no scale, the scale is assumed to be 0 (ex. NUMERIC(10) -> NUMERIC(10,0)), but ActiveRecord treats this as a NUMERIC without scale defined, which means it can have digits to the right of the decimal place.

We are going to match the ActiveRecord behavior, but use this to track it and check if the behavior changes eventually.

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