class DomainTerm < ActiveRecord::Base # TODO: we should add an index on this join table and remove the uniq query has_and_belongs_to_many :local_authorities, -> { uniq } end