# Alle Beiträge des Benutzers in Wiki umwandeln

**URL:** <https://meta.discourse.org/t/change-all-posts-by-user-to-wiki/49298>\
**Category:** Support\
**Tags:** wiki-posts\
**Created:** [26. August 2016 um 20:05 UTC](https://meta.discourse.org/t/change-all-posts-by-user-to-wiki/49298 "2016-08-26T20:05:27Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![cpradio](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cpradio/32/4970_2.png) [@cpradio](https://meta.discourse.org/u/cpradio)\
**Post date:** [26. August 2016 um 21:34 UTC](https://meta.discourse.org/t/change-all-posts-by-user-to-wiki/49298/4 "2016-08-26T21:34:15Z")

</div>

You can do it via the Rails console.

Something along the lines of

```plaintext
p = Post.find_each(user_id: X)
p.each_entry(wiki: true)

```

Then you have to figure out how to call .save on each entry… I’m struggling with that part, but it should be possible.

---

_[View the full topic](https://meta.discourse.org/t/change-all-posts-by-user-to-wiki/49298)._
