Hello everyone,
I have two separate databases DB and SHARED_DB.

class Foo < Sequel::Model(DB[:foos])
  many_to_many :bars, class: 'Bar', join_table: DB[:foo_bars]
end


class Bar < Sequel::Model(SHARED_DB[:bars])
end


Problem is, that I am getting SQL error that table foo_bars does not exist 
in SHARED_DB. Another associations like one_to_many and many_to_one works 
with no issues... I understand that it is not possible to make a join 
across multiple databases, but I thought that Sequel can handle it and 
loads Bars by its primary keys...

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/sequel-talk/ca2dc512-d861-40e5-ad08-a6f4ef06cf22o%40googlegroups.com.

Reply via email to