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

Bug with decimal precision example #12

Closed
sergii opened this issue Jul 14, 2022 · 2 comments
Closed

Bug with decimal precision example #12

sergii opened this issue Jul 14, 2022 · 2 comments

Comments

@sergii
Copy link

sergii commented Jul 14, 2022

https://rails.help provides wrong example:

bin/rails g model ExampleModel other_model:references{polymorphic}:uniq lng:decimal{10,6}

right example:

bin/rails g model ExampleModel other_model:references{polymorphic}:uniq lng:decimal{10-6}

Please change decimal{10,6} to decimal{10-6}

@wasabigeek
Copy link
Owner

wasabigeek commented Jul 16, 2022

Thanks for bringing this up @sergii! This is actually what the docs recommend. I think it might have something to do with the shell rails/rails#13520 (comment) (mine does the same too, for what it's worth).

@wasabigeek
Copy link
Owner

Added a note about this in 49188ee.

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

2 participants