The orchestrator prompt (Jasmine) and scenario instruction (Daniela) live in the database. When we merge this branch to main and deploy to production, the prod DB will keep its OLD prompts — the new ones would only exist in staging. That defeats the point of merging. Fix: commit the current staging prompts as .md files under db/seed_prompts/ and add a data migration that syncs them into the DB on deploy. Idempotent (no-ops when content already matches). From now on, prompt changes follow the same workflow as code: edit the .md file, migration resyncs on deploy. The DB row becomes a mirror of the file, not the source of truth. |
||
|---|---|---|
| .. | ||
| migrate | ||
| seed_prompts | ||
| seeds | ||
| schema.rb | ||
| seeds.rb | ||