job_id forces FK in rails 4.2.7.1 and 4.2.8 #40

Closed
opened 2025-12-29 00:21:44 +01:00 by adam · 0 comments
Owner

Originally created by @ihudak on GitHub (Mar 10, 2017).

when doing migration (rails 4.2.7.1 and 4.2.8 on postgres db), rails interprets job_id as a reference to job table (which does not exist).
Changing the job_id string in the migration file:
t.string :job_id, null: false, foreign_key: false
(add foreign_key: false) solves the problem

Originally created by @ihudak on GitHub (Mar 10, 2017). when doing migration (rails 4.2.7.1 and 4.2.8 on postgres db), rails interprets job_id as a reference to job table (which does not exist). Changing the job_id string in the migration file: t.string :job_id, null: false, foreign_key: false (add foreign_key: false) solves the problem
adam closed this issue 2025-12-29 00:21:44 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/crono#40