Re: Database Modeller (Mac)

Xavier Noria
Sun, 22 Apr 2007 16:38:23 -0000

On Apr 22, 2007, at 5:33 PM, dagny wrote:

> However, I disagree about not using foreign key constraints. These are
> wonderful, useful aids to maintain the referential integrity of the
> DB. When your code violates one, you get a SQL error immediately.
It''s
> much easier to fix one of these than it is to try to debug an
> application that fails intermitently due to data error.

I agree, they are a great help to get a chain of has_many :dependent
right. You get an index for that column automatically as well at
least in MySQL and a few more, so we use the plugin from RedHill
Consulting in all our applications.

-- fxn