Closed onomated closed 5 years ago
Thanks for the report @onomated. I don't have time for this right now but other maintainers may be able to. A PR would also be accepted.
I can take a pass at it. Only challenge may be generating a test for it, but I'll look through the tests you have. Thanks!
Don't worry too much about a test.
This error is returned when attempting to dispatch jobs with a custom
jobs_table_name
config:The check here: https://github.com/samphilipd/rihanna/blob/master/lib/rihanna/migration.ex#L234 is looking for the wrong primary key index. For example, with:
The generated primary key index name is
background_jobs_pkey
vs.rihanna_jobs_pkey
resulting in the error above.