No need to change this from the Rails 3 style, do:

    validates :name, :length => { :maximum => 255 }, :uniqueness => { :scope => [ :name, :auth_source_id ] }