mirror of
https://github.com/plashchynski/crono.git
synced 2026-01-14 14:23:27 +01:00
job_id forces FK in rails 4.2.7.1 and 4.2.8 #40
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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