CombinedUniquenessValidator for Rails3
JavaScript Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
coverage
lib
spec
.gitignore
Gemfile
README.rdoc
Rakefile
combined_uniqueness_validator.gemspec

README.rdoc

Combined uniqueness validator

Installation

Add the following line to your Gemfile

gem "combined_uniqueness_validator"

Using

Validate combined uniqueness of any number of fields:

validate_combined_uniqueness_of :first_field, :second_field, :third_field

It is like creating a primary key on these fields but logically (this means validations will be performed by `ActiveModel`, not by your database).

Maintainer

Contributing to combined_uniqueness_validator

  • do what you want with it :) If you want to report issues, fork it, send pull requests… you're welcome ;)