class Post
acts_as_paranoid
has_many :comments, dependent: :destroy
end
class Comments
acts_as_paranoid
belongs_to :post
end
post = Post.find 1
post.destroy # safe deletes the post and the comment(s)
post.recover # recovers the post, but the comment(s) are still deleted
# if, instead, we simply fetch a new Post object and try calling recover it'll work
post_2 = Post.find 1
post_2.recover # recovers all comments
Using rails 6.0 e.g.