Hello everyone! I have project with two databases. Let's call them DB and SHARED_DB. For example I have two models:
class Foo < Sequel::Model(DB[:foos]) many_to_one :bar end class Bar < Sequel::Model(SHARED_DB[:bars]) one_to_many :foos end I need to find some best way, how to validate during create/update that referenced bar_id really belongs to any bar... Traditional foreign_key in Postgresql is the best way but in my case we have two separate databases here. Have you ever solved the same problem? Thank you -- 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/48b35183-167e-49e0-a3cb-5f36e92e523do%40googlegroups.com.