First page Back Continue Last page Overview Text


Sequel's standard many_to_many association uses one join table between the current model table and the associated model table.

For example, let's say an artist can have multiple albums, and an album can have multiple artists.

There would be a single join table between the two tables, so you could use a many_to_many association to get the albums for each artist.