search for: childrenp0

Displaying 1 result from an estimated 1 matches for "childrenp0".

Did you mean: children
2006 May 25
0
Has_many, dependent=false, foreign keys legacy issues...
...(even if it might not make sense from the data modellers perspective) The only place where I feel like rails lets me down is: rule is cascade, dependent=>false, foreign key column has a not null constraint (and schema.rb shows that it knows about the not null constraint) p.children.delete(p.childrenp0]) throws up an exception from straight from the DB. I can understand why it doesn''t chose to delete the row because Rails has been told its not dependent. However, I would have hoped that the exception could have been thrown from earlier in the call stack -- ie AR should know that the...