I'm trying to explicitly specify columns from two related models:
dataset = TableA
    .where(table_a_column_a: 'foo')
    .select(:table_a_column_b,:ambiguous_column)
    .join(:table_b, table_a_id: :table_b_id)
    .where(table_b_column_a: 'bar')
    .select_more(:table_b_column_b)
This syntax doesn't work.

How do I specify:

   - table_b.table_b_column_b 
   - table_a.ambiguous_column, which exists in both tables

Thanks.

-- 
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 sequel-talk+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/526ba25d-c163-446b-ae3f-f3235ce040a2n%40googlegroups.com.

Reply via email to