rubidine / unique_tuple

An ActiveRecord validation (validates_uniqueness_of_tuple) that guarantees no other record exists with the same values for a set of columns.

This URL has Read+Write access

name age message
file MIT-LICENSE Loading commit data...
file README
file Rakefile
file init.rb
directory lib/
README
UniqueTuple
===========

Adds a new ActiveRecord validation:
validates_uniqueness_of_tuple *columns

This will validate that no object has the same values for the set of columns.