RealGeeks / lab_tech

Rails engine for using GitHub's 'Scientist' library with ActiveRecord, for those of us not operating apps at ROFLscale
MIT License
65 stars 15 forks source link

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

Open viktorianer opened 2 years ago

viktorianer commented 2 years ago

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

Caused by this line: https://github.com/RealGeeks/lab_tech/blob/e595d1337bf1e6c9f145da1753dfa28d7809c5e8/db/migrate/20190815192130_create_experiment_tables.rb#L40

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?

geeksam commented 1 year ago

Sorry, I left Real Geeks and no longer have commit privileges to this repo. Pinging @larslevie @kevin1024 @LupineDev @Sparkmasterflex

kevin1024 commented 1 year ago

@geeksam just added you as a maintainer. Thanks for keeping lab_tech alive :)