What are the default values for Rails 3 for :dependent on has_many and belongs_to?

While it isn't spelled out in the documentation, the default behavior is to do nothing with associated objects. That is, deleting or destroying an object will not delete or destroy the objects that it belongs to or has many of.

Thanks for pointing that out :) I'd expect rails to try to use DB queries to load dependent objects, if their ID fields are not properly nullified. This means, wasting CPU and DB time to search for non-existant records. So I wonder why rails isn't doing anything about it by default ... – fxtentacle Jun 28 at 8:04.

The default values for rails are (without quotes):.

While it isn't spelled out in the documentation the default behavior is to do nothing with associated objects. That is, deleting or destroying an object will not delete or destroy the objects that it belongs to or has many of.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions