Re: help with has_a and has_many relationships?

[prev] [thread] [next] [Date index for 2004/05/19]

From: Tony Bowden
Subject: Re: help with has_a and has_many relationships?
Date: 11:54 on 19 May 2004
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

help with has_a and has_many relationships?
Caroline Johnston 11:49 on 19 May 2004

Re: help with has_a and has_many relationships?
Tony Bowden 11:54 on 19 May 2004

Re: help with has_a and has_many relationships?
Caroline Johnston 13:28 on 19 May 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52