Hi all,
We are currently using Sequel on Rails, some of the classes are CTI and I 
need to eager_graph some of the tables.

class A
    plugin :class_table_inheritance, key: :foo, table_map: {:B => b_tables }
    one_to_many :names, class: "name"
end

class B < A
end

By default, all of our tables have default :created_at, :updated_at columns.
I am trying to eager_graph B class with associated join table of names from 
the parent class
basically, I do B.eager_graph(:names).first will throw an error that is 
caused we have multiple ambiguous columns of :created_at and :updated_at on 
both classes.

error thrown: Sequel::DatabaseError: PG::AmbiguousColumn: ERROR:  column 
reference "created_at" is ambiguous

Greatly appreciate anybody could help me looking for the best way to solve 
this.

Best,
Anton

-- 
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.

Reply via email to