title: Mongoid::Paranoia delete associations
body: <p>user.rb model</p>
  
  <pre><code>class User
    include Mongoid::Document
    include Mongoid::Paranoia
    has_many :posts, dependent: :destroy, :autosave =&gt; true
  end
  </code></pre>
  
  <p>post.rb model</p>
  
  <pre><code>class Post
    include Mongoid::Document
    belongs_to :user
    field :title
  end
  </code></pre>
  
  <p>If I run the next command in console:</p>
  
  <pre><code>irb(main):020:0&gt; u = User.first
  =&gt; #object here
  irb(main):021:0&gt; u.delete
  =&gt; true
  irb(main):022:0&gt; u.posts
  =&gt; nil
  </code></pre>
  
  <p>If I try call to <strong>user posts</strong> I can see that all <strong>user posts</strong> has been deleted. I want remove all user posts <strong>only</strong> if user is permanent destroyed from my database with <code>u.destroy</code>.</p>
  
  <p><strong>How can I keep inside of my database all related objects if I delete a object with <code>Mongoid::Paranoia</code> <code>u.delete</code> for this object can be restore later with <code>u.restore</code></strong></p>
  
  <p>Thanks!</p>