On Aug 28, 11:32 pm, Mark Wilden <
m...@mwilden.com> wrote:
> Almost OT advice: don't worry about database performance until you
> need to. And most of us should be so lucky.
Well, I would normally agree with you, but in this case the two
foreign keys are there because of historical reasons and changing it
now would be a headache.
Btw: This would be a nice feature for other reasons as well. One could
imagine that you would like to set a normal attribute on an
association (i.e. It doesn't have to be an associated association like
in my case):
Factory.define :user do |f|
f.association :company, :name => "Foobar Inc."
end