# Rake posts:remap - 0 posts remapped!

**URL:** <https://meta.discourse.org/t/rake-posts-remap-0-posts-remapped/140364>\
**Category:** Self-hosting\
**Created:** [February 1, 2020, 9:56am UTC](https://meta.discourse.org/t/rake-posts-remap-0-posts-remapped/140364 "2020-02-01T09:56:01Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [February 1, 2020, 6:17pm UTC](https://meta.discourse.org/t/rake-posts-remap-0-posts-remapped/140364/5 "2020-02-01T18:17:56Z")

</div>

> [@Amethi](#):
>
> Raw, like the file format? No just usual web formats.

`raw` is the field where the text you see in the editor is. The stuff you are replacing is what you see if you edit the post in the ux, right? (`cooked` is the stuff that’s been processed and is what gets displayed.)

> [@Amethi](#):
>
> Doing what in rails console?

Doing stuff to re-write the posts. This is might be just enough to make you dangerous:

```ruby
bps = Post.where("raw like '%//SOME-STRING%'")
bps.each do |post|
  post.raw.gsub!(/OLD/,'NEW')
  post.save
end

```

The advantage over the rake task is that you don’t have multiple levels of espaping to navigate.

---

_[View the full topic](https://meta.discourse.org/t/rake-posts-remap-0-posts-remapped/140364)._
