title: cascade delete (soft and hard delete) ruby
body: <p>So here is the problem:
  Hard delete is quite obvious that you destroyed the parent and the child should get destroyed. and using <code>dependent: :destroy</code> for it works fine and when ever parent gets destroyed the child gets destroyed.</p>
  
  <p>about confuse about soft delete. if i want to soft delete user and for that i wanted to update a field in user <code>deleted_at: Time.now</code>. its called a soft delete but i want to destroy/null all the associations/dependent of user when i update deleted_at field.</p>
  
  <p>how is it possible without using any gem.</p>