relation accepts :primary_key as proc