Forum: Ruby on Rails Foreign key with 2 or more fields in a relationship

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.
Eddie S. (Guest)
on 2006-01-09 09:30
In rails with a 1-M or M-M relationship you can use :foreign_key =
â??xxxxxâ? to override the default foreign key which will be used.

Is it possible and if so, how do you specify a foreign key for a
relationship which has two or more fields in it?
This topic is locked and can not be replied to.