Ashley, why do you say that?

I have been bitten by sql server enforced constraints before.

I had a situation where the constraints where stopping things being  
saved, but ruby was not catching the fact that
things had broken and so was reporting that the save happened. Caused  
a real headache.

Also, the mantra of DRY suggests that the constraints should be in one  
place. That one place being the model code.

What is your take on it?

Don't just say 'oh dear!' and leave it at that.


On 8 Oct 2008, at 11:15, Ashley Moran wrote:

>
>
> On 8 Oct 2008, at 06:43, Peter Morris wrote:
>
>> database level constraints are BAD.
>
>
> Every time I hear this, a little bit of my faith in the Rails
> community dies :(
>
> -- 
> http://www.patchspace.co.uk/
> http://aviewfromafar.net/
>
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"NWRUG" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/nwrug-members?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to