Update association validations to work correctly in Rails 3.2.9+.