remove warnings on ruby trunk
Merge pull request #12739 from laurocaetano/remove_warnings_for_ruby_trunk

Remove warnings on ruby trunk
Fix wrong behavior where associations with dependent: :destroy options
was using nullify strategy

This caused a regression in applications trying to upgrade.

Also if the user set the dependent option as destroy he expects to get
the records removed from the database.