Unique scope on many-to-many throughs