validates_uniqueness_of and attr_readonly

I notice that I always want to prevent the unique key of a table from
being changed. Does that mean I always have to have attr_readonly right
after validates_uniqueness_of ? Is there a single function that
replaces both of these but has the same affect?

Thanks.