Say I have Project, that is in many-to-many association with Tag. I\'m using has_many through so I have separate join model.
H
I think what you want is validates_uniqueness_of:
class Taggings belongs_to :tags validates_uniqueness_of :tag_id, :scope => :project_id end
This is what I'm using, and works well.