thoughtbot/shoulda-matchers — pull request #153 by gauravs (2012-09-18 10:23:56+00:00)
Title: Default value assignment fix for validate_uniqueness_of with scope

Postgres adapter does not convert integers to string upon assignment, so initialize with a string if it the column is of string type.