Unset association when existing record is destroyed. #5248

Merged
merged 1 commit into from Sep 21, 2012
Commits on Mar 2, 2012
  1. @jcoleman

    Unset association when existing record is destroyed.

    jcoleman committed Mar 2, 2012
    To avoid foreign key errors (and invalid data) in the database, when a belongs_to association is destroyed, it should also be nil'd out on the parent object.