How to re-run fixtures on db from plugins?

I understand they add static content to database, please correct me if I’m wrong about it.

For example, that’s the place where prompts stays on Discourse AI Plugin:

https://github.com/discourse/discourse-ai/blob/main/db/fixtures/ai_helper/600_openai_completion_prompts.rb

So, I changed the prompts to our language but I don’t really know how to update them on our instance (tried to update and push but it didn’t work as expected).

The prompts are still in english and because of that I suspect that fixtures are writing static content on database.

I know that can be edited manually on the database but I’m asking for the more elegant way and not monkey-patching method :slight_smile:

Thanks like always.

1 Like