Replies: 1 comment 1 reply
-
One thing I noticed is the model's
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have a dataset_module defined on two different Sequel::Model classes (User and School) like this:
Now, if I join like
User.join(:schools, id: :school_id).kept.first
I get an expected error "column reference "discarded_at" is ambiguous (PG::AmbiguousColumn)". I know I could usequalify
at the call site, likeUser.join(:schools, id: :school_id).kept.qualify.first
, but can I qualify only thediscarded_at
and still use thewhere
method of the dataset_module? Best I could come up with was to assign the table_name to a local variable like this:Any other ideas?
Beta Was this translation helpful? Give feedback.
All reactions