Displaying 1 result from an estimated 1 matches for "must_have_unique_el".
2009 Oct 23
2
validates_uniqueness_of across multiple rows?
Ok, that''s not the best subject line, but I couldn''t think of a
concise way to describe what I''m trying to do.
I''ve got two models. Grouping simply contains an id and a few other
attributes (e.g. rating). A grouping can contain many elements which
are stored the Element model.
A set of elements is tied together by a grouping_id. An element can
be one of