plashchynski / crono

A time-based background job scheduler daemon (just like Cron) for Rails
https://github.com/plashchynski/crono
Apache License 2.0
687 stars 56 forks source link

job_id forces FK in rails 4.2.7.1 and 4.2.8 #60

Closed ihudak closed 7 months ago

ihudak commented 7 years ago

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