Skip to content

ArgumentError: No text type has byte size 4294967295. The limit on text can be at most 1GB - 1byte. #43

@viktorianer

Description

@viktorianer

I just added LabTech to my Rails project and getting this error on migration.

Caused by this line:

t.text "value", limit: 4294967295

Changing it to t.text "value", limit: 1.gigabyte - 1.byte will help in my case.

I am working on macOS with M1 chip and Docker:
ruby 3.0.4p208 (2022-04-12 revision 3fa771dded) [x86_64-linux]
Rails 6.1.6
lab_tech 0.1.9
scientist 1.6.3

Maybe related to my postgis 14.3.2 on Alpine?

Metadata

Metadata

Assignees

No one assigned

    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