views:

14

answers:

0

Hello,

I have three models, say Item, Category, Label.

Item can have one Category and many Labels, however each Item record must have a unique combination of Category and/or Labels.

I'm using Rails 2.3.5, what is the best way to ensure this integrity?

Thanks!