Skip to content

BigInt validation uses incorrect limits and fails erroneously #65

@davismattg

Description

@davismattg

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!

Metadata

Metadata

Assignees

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