Forum: Ruby on Rails validating composite model keys

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
19ec659e4e24991f542afa2317bf7bfd?d=identicon&s=25 Larry Barnett (1arryb)
on 2006-03-22 22: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?

Thanks,

Larry
This topic is locked and can not be replied to.