You were running the rake task in the rails console which doesn’t work. But when you run it correctly, you will notice that the rake task doesn’t exist anymore.
Instead I recommend using the “Manual Update” method described in Update seeded categories and topics. I edited the steps in How to regenerate FAQ and TOS pages? accordingly.