Use of Nullify in ruby on Rails
dependent destroy will delete all associated tables of the parent id but dependent nullify delete the parent id from the associated tables only.parent id column will set to null :: (it is pointless to have any value there because the user with that id was deleted)
Comments
Post a Comment