From 481d0cfc2e43b911d0f25f86d3e0fcc74b8fcd29 Mon Sep 17 00:00:00 2001 From: Coraline Date: Tue, 25 Jun 2024 18:01:21 -0400 Subject: [PATCH] Missingn callback --- app/models/survey_response.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/models/survey_response.rb b/app/models/survey_response.rb index ace1da1..9e5135b 100644 --- a/app/models/survey_response.rb +++ b/app/models/survey_response.rb @@ -5,7 +5,8 @@ class SurveyResponse < ApplicationRecord before_save :sanitize_array_values after_save_commit :enqueue_export_to_graph - + after_create :enqueue_keyword_extraction + validates_presence_of :response_id validates_uniqueness_of :response_id