dependent: :destroy should call destroy_all

Commit https://github.com/rails/rails/pull/9668 shows warning
when `delete_all` is invoked with `:dependent` option
`:destroy`.

Unfortunately invoking `Post.destroy_all` invokes
`post.comments.delete_all` as part of `has_many` callbacks.

This commit ensures that instead `post.comments.destroy_all` is
invoked and in the process no warning is generated.

See issue #9567 for details .
Merge pull request #9676 from neerajdotname/9567-destroy-should-call-destroy-all

dependent: :destroy should call destroy_all