Duplicates check is Rails 2 friendly.