1) :dependend => :destroy is supposed to delete it. If you don't have that defined, it'll sett the association to null
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Why no :dependent => :delete for has_one? | 5 | 184 | August 26, 2006 | |
Fix to make has_one/has_many :dependent behaviour consistent (my first patch) | 3 | 150 | July 31, 2007 | |
has_one behavior - AWDWR page 332 | 0 | 105 | January 22, 2007 | |
:dependent => :delete_all not working | 3 | 113 | April 18, 2007 | |
has_many with :dependent => :nullify | 1 | 194 | June 30, 2007 |