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

BigInt validation uses incorrect limits and fails erroneously #65

Open
davismattg opened this issue Oct 4, 2019 · 0 comments
Open

BigInt validation uses incorrect limits and fails erroneously #65

davismattg opened this issue Oct 4, 2019 · 0 comments
Assignees

Comments

@davismattg
Copy link

I have a column file_size on my Attachment model that is a bigint. When performing validation, any files that are larger than 2147483648 are failing since the schema validation treats that column as an Integer instead of using the size range for ActiveRecord::Type::BigInteger.

Are there any known workarounds for this? Currently I have just excluded that column with schema_validations except: :file_size but would prefer to keep the full schema_validations on that model. Thanks!

@urkle urkle self-assigned this Dec 13, 2019
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