Dry-system and sequel associations

Hi guys,
I’m currently creating my first app with dry-system and sequel without rom, found useful example here -> https://github.com/dry-rb/dry-system/tree/master/examples/standalone. And I got stuck with adding associations between tables. Is it possible to do or to use sth similar to https://github.com/jeremyevans/sequel/blob/master/doc/association_basics.rdoc ?

Hi @dawidof,

using dry-system alongside sequel will not affect in any way how you can use sequel. So yes, you can use any sequel feature. Therefore, probably you’ll find more useful help asking in sequel specific forums (I haven’t look if there is any) or, otherwise, somewhere like stackoverflow.


@waiting-for-dev thank you

Just be sure to require the file where your association lives from the file where you are defining the association. No autoloading magic will happen with dry-system.