FIX: Truncate seeded persona's names to fit name length constraint (#34393)

This commit is contained in:
Roman Rizzi
2025-08-18 18:08:43 -03:00
committed by GitHub
parent 19292d4f85
commit 565a70b72c
@@ -35,6 +35,10 @@ class SeedPersonasFromTriageScripts < ActiveRecord::Migration[8.0]
"Unnamed triage automation script ID #{field["automation_id"]}"
end
)
# Persona's name field cannot be longer than 100 chars.
name = name.truncate(99)
temp = field["temperature"]
# Extract the model ID from the setting value (e.g., "custom:-5" -> "-5")