Complex model with a list in Ruby sequel

I am using Sequel ORM in need to implement a model with a many to many
association that is a list on one side, and I got stuck with the correct
setup.

The main model Revision represents a revision of a legal code or a
treaty. It has articles that need to be arranged by a number which is
scoped to revision_id (using a List plugin).

Two revisions may contain the same article but it is not necessarily
keeps the same number, so it has to have a many_to_many relation and the
number field has to be in articles_revisions table.

Could someone please give me some directions?

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs