fixes #4731 - Rails 3.2.8 causing _pkey contraint errors