rails/rails — pull request #8996 by wangjohn (2013-01-19 02:49:47+00:00)
Title: Wangjohn validates associated uniqueness

Pull request in response to https://github.com/rails/rails/issues/4568. Uses jeyb's pull request and cleans up some code.