Skip to content

BigInt validation uses incorrect limits and fails erroneously #65

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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