Remove Rails 3.0 specific code in uniqueness patch.

This code was added to support Rails 3.0 which does not have `build_relation` -- we can now remove it.