Ruby on Rails Wednesday, May 31, 2017

I suspect the issue is that you've referred directly to a primary key called `` in your SQL, but (from the `belongs_to` call) we can see that column is actually called `baseline_id`.

Have you tried changing ' IN (?)' to 'projects.baseline_id IN (?)' in your initial query? That might sort it.

You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To post to this group, send email to
To view this discussion on the web visit
For more options, visit

No comments:

Post a Comment