On Wednesday, October 19, 2016 at 12:26:18 PM UTC-7, David P wrote: > > Hello all, > > I am using the Class Table Inheritance plugin, and I have a question about > how to properly use it with #eager_graph. My application tables look like > this: > > Class Entity > end > > Class Car < Entity > end > > Class Name > end > > Class EntityHasName > FK name_id > FK entity_id > end > > Name is linked to Entity with a many_through_many relationship. > > My issue is that when I use #eager_graph in the following way, I get an > ambiguous column error: > RMS::Car.eager_graph(:entity_has_name).all > > PG complains that the column created_at is ambiguous. > > Should I be specifying some dataset options somewhere to prevent this > error? Could anyone provide an example of how I would pass in those > options? >
You should try to post a self contained example showing the issue, including the schema creation statements. I just responded to a similar issue to yours, coming up with my own self contained example that wasn't able to reproduce the issue, you may want to check that response and see if it applies to you: https://groups.google.com/forum/#!topic/sequel-talk/AuDf7_Teyio Thanks, Jeremy -- You received this message because you are subscribed to the Google Groups "sequel-talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/d/optout.
