# Add likes programmatically?

**URL:** <https://meta.discourse.org/t/add-likes-programmatically/242993>\
**Category:** Product Support\
**Created:** [October 26, 2022, 6:24pm UTC](https://meta.discourse.org/t/add-likes-programmatically/242993 "2022-10-26T18:24:50Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [October 26, 2022, 8:11pm UTC](https://meta.discourse.org/t/add-likes-programmatically/242993/4 "2022-10-26T20:11:07Z")

</div>

> [@piffy](#):
>
> I am nervous to re-run the import script since it’s been almost 6 months

I would be quite nervous as well!

> [@piffy](#):
>
> I will run something similar to this. Thanks!

Yippee! You never know when providing an answer as vague as “Well, what I would do. . .” whether it’ll be of any use.

If you’re going to paste stuff into the rails console, a handy trick to know is that if you terminate your lines with a `;` you won’t get pushed into a `less` pager to see the results of the last statement. (If you write a proper loop, or run a script you don’t need this tip.)

Good luck!

---

_[View the full topic](https://meta.discourse.org/t/add-likes-programmatically/242993)._
