Forum: Ruby on Rails validating composite model keys

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Larry B. (Guest)
on 2006-03-22 23:23
I know that I should be able to figure this out by looking at the
source, but this "ruby newbie" can't:

I have a model for a table with a 3-column composite key. Is there a way
to tell the stock validates_uniqueness_of() helper to validate such a
key or do I have to write my own?


This topic is locked and can not be replied to.