Changeset [52373a9b387aeb298384f501bd8c6369fdd8b7e4] by Xavier Shay

December 2nd, 2010 @ 11:15 PM

Uniqueness auto-validations now raise a helpful error message when you
try to scope by an arbitrarily named group, rather than an actual

It would be nice if this behaviour Just Worked, but I'm not confident on
the interaction or intention between :unique and :unique_index, so for
now this is strictly better than what was there.

[#1316 state:confirmed]

Committed by Xavier Shay

  • A spec/integration/automatic_validation/inferred_uniqueness_validation_spec.rb
  • M lib/dm-validations/validators/uniqueness_validator.rb
New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »