Migration field log too long for Postgres #37

Closed
opened 2025-12-29 00:21:41 +01:00 by adam · 1 comment
Owner

Originally created by @unmultimedio on GitHub (Dec 2, 2016).

When trying to follow installation

rake db:migrate

Found this error in Rails 5 + PostgreSQL

Running via Spring preloader in process 372
== 20161202004223 CreateCronoJobs: migrating ==================================
-- create_table(:crono_jobs, {})
rake aborted!
StandardError: An error has occurred, this and all later migrations canceled:

The limit on text can be at most 1GB - 1byte.

Which gets easily fixed replacing in migration file:

t.text      :log, limit: 1000000000 # For PostgreSQL
Originally created by @unmultimedio on GitHub (Dec 2, 2016). When trying to follow installation ``` rake db:migrate ``` Found this error in Rails 5 + PostgreSQL ``` Running via Spring preloader in process 372 == 20161202004223 CreateCronoJobs: migrating ================================== -- create_table(:crono_jobs, {}) rake aborted! StandardError: An error has occurred, this and all later migrations canceled: The limit on text can be at most 1GB - 1byte. ``` Which gets easily fixed replacing in migration file: ``` t.text :log, limit: 1000000000 # For PostgreSQL ```
adam added the bug label 2025-12-29 00:21:41 +01:00
adam closed this issue 2025-12-29 00:21:42 +01:00
Author
Owner

@plashchynski commented on GitHub (Dec 2, 2016):

@unmultimedio good catch, fixed in v1.1.2

@plashchynski commented on GitHub (Dec 2, 2016): @unmultimedio good catch, fixed in v1.1.2
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/crono#37