On Tuesday, October 1, 2013 5:05:07 PM UTC-7, elskwid wrote: > Very nice presentation Jeremy, and timely too as I am playing with > composite types. You wouldn't happen to have an example of how you wire up > Albums to Tracks would you? I am doing something similar and am interested > in seeing a working example of creating the table and hooking up the models > so they do the array of tracks correctly. >
There's not much to it. I think a minimal example would be this: DB.extension(:pg_array, :pg_row) class Track < Sequel::Model plugin :pg_row end class Album < Sequel::Model end If you are still having problems getting it to work, please let me know. Thanks, Jeremy -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sequel-talk. For more options, visit https://groups.google.com/groups/opt_out.
