# Question about PostRevision.destroy\_all

**URL:** <https://meta.discourse.org/t/question-about-postrevision-destroy-all/51151>\
**Category:** Product Support\
**Created:** [2016 年 10 月 5 日午後 11:06 UTC](https://meta.discourse.org/t/question-about-postrevision-destroy-all/51151 "2016-10-05T23:06:59Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![bek](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bek/32/61660_2.png) [@bek](https://meta.discourse.org/u/bek)\
**Post date:** [2016 年 10 月 6 日午前 12:24 UTC](https://meta.discourse.org/t/question-about-postrevision-destroy-all/51151/3 "2016-10-06T00:24:03Z")

</div>

I don’t care about nor DB size neither db corruption. I’ve regularly backed up everything. This is not a production server. So I can fix what I broke. Even I cannot fix it, no problem. I’ve a database which is have 5k posts, 2k users for testing. I’m testing on it about 1month. All I made is deleting post revisions, removing already “removed” posts. So far so good.

Oh, btw looks like `PostRevision.ensure_consistency!;` solved that problem.

---

_[View the full topic](https://meta.discourse.org/t/question-about-postrevision-destroy-all/51151)._
