rails/rails — pull request #11200 by bcardarella (2013-06-30 17:07:03+00:00)
Title: UniquenessValidator will respect default scopes

Currently all default scopes are removed. If a developer is explicitly adding a default scope to a model class this scoping should be respected when checking for uniqueness.