# 플러그인에서 DB의 fixtures를 다시 실행하는 방법?

**URL:** https://meta.discourse.org/t/how-to-re-run-fixtures-on-db-from-plugins/269927
**Category:** Development
**Tags:** ai
**Created:** [6월 13, 2023, 8:55오후 UTC](https://meta.discourse.org/t/how-to-re-run-fixtures-on-db-from-plugins/269927 "2023-06-13T20:55:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![satonotdead](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/satonotdead/32/447830_2.png) [@satonotdead](https://meta.discourse.org/u/satonotdead)
#### Post date: [6월 13, 2023, 8:55오후 UTC](https://meta.discourse.org/t/how-to-re-run-fixtures-on-db-from-plugins/269927/1 "2023-06-13T20:55:04Z")

</div>

> _정적 콘텐츠를 데이터베이스에 추가한다고 이해하고 있습니다. 틀렸다면 바로잡아 주세요._

예를 들어, 프롬프트가 저장되는 위치는 [Discourse AI 플러그인](https://meta.discourse.org/t/discourse-ai/259214)의 다음과 같은 곳입니다:

[https://github.com/discourse/discourse-ai/blob/main/db/fixtures/ai\_helper/600\_openai\_completion\_prompts.rb](https://github.com/discourse/discourse-ai/blob/main/db/fixtures/ai_helper/600_openai_completion_prompts.rb)

프롬프트를 우리 언어로 변경했지만, 인스턴스에서 어떻게 업데이트해야 할지 정확히 모르겠습니다(업데이트하고 push를 시도했지만 예상대로 작동하지 않았습니다).

프롬프트가 여전히 영어로 남아 있고, 그 때문에 픽스처가 데이터베이스에 정적 콘텐츠를 기록하고 있다고 의심합니다.

데이터베이스에서 수동으로 편집할 수 있다는 것은 알지만, _몽키 패치_ 방식이 아닌 더 우아한 방법을 찾고 있습니다 🙂

항상 감사합니다.
