Ruby on Rails Wednesday, May 31, 2017

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

Have you tried changing 'projects.id 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 rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/2265d327-8a03-4eca-bd61-91da536747f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment