This project is archived and is in readonly mode.
belongs_to :dependent => :destroy should destroy self before assocation
-
Pratik
- Tag changed from activerecord, bug to activerecord, bug, patch
- Assigned user set to Frederick Cheung
Seems reasonable to me. Assigning to Fred to make sure I'm not missing anything. Will apply after his +1.
-
Frederick Cheung
Seems to resolve the issue for me. Can't think of an obviously bad side effect
-
Repository
- State changed from new to resolved
(from [0e92f67073079fe3d34acd141099cdad28b0ee00]) Make belongs_to :dependent => :destroy destroy self before associated object [#1079 belongs_to :dependent => :destroy should destroy self before assocation state:resolved]
If foreign key constraints are in place then deleteing the associated object first will cause a foreign key violation
Signed-off-by: Frederick Cheung frederick.cheung@gmail.com http://github.com/rails/rails/co...
