The issue that Postgres is complaining about is that it can't find a column called author_id
on your works
table, and as a result, it won't be able to find the corresponding works
for a given Author
.
If you haven't already, you'll need to add a migration to add an author_id
column to Work
.