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

Popular posts from this blog

Rails 7 Features :: Comparison with Rails 6 and Rails 5