Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Numeric types have improper scale #178

Open
keithdoggett opened this issue Feb 9, 2021 · 0 comments
Open

Numeric types have improper scale #178

keithdoggett opened this issue Feb 9, 2021 · 0 comments

Comments

@keithdoggett
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant