Remove Rails 3.0 specific code in uniqueness patch.
Merge pull request #252 from shioyama/rails4

Remove Rails 3.0 specific code in uniqueness patch.