Re: help with has_a and has_many relationships?
[prev]
[thread]
[next]
[Date index for 2004/05/19]
On Wed, May 19, 2004 at 12:49:03PM +0100, Caroline Johnston wrote:
> Also, someone else suggested just not using Foreign
> keys as Primary keys but unfortunately changing the underlying DB
> isn't an option. Any other ideas...?
From the docs:
*NOTE* You should not attempt to make your primary key column inflate
using has_a() as bad things will happen. If you have two tables which
share a primary key, consider using might_have() instead.
Is it not possible to use might_have in this case?
Tony
|
|
Re: help with has_a and has_many relationships?
Tony Bowden 11:54 on 19 May 2004
|