Do not migrate surveys that were already migrated in the past#6380
Do not migrate surveys that were already migrated in the past#6380tramuntanal merged 1 commit intodevelopfrom
Conversation
There was a problem hiding this comment.
Hi @tramuntanal
Maybe you should review the check of the table_exists method call for up method:
as I've seen the comment by @andreslucena on closed previous PR #6299:
where he asked about check if table data exists instead of only table exists.
He linked into issue #6275 description as follows:
|
@ramoncodit the In the legacy structure |
Leusev
left a comment
There was a problem hiding this comment.
Ok, then the asked fix is contemplated. All ok 👍


🎩 What? Why?
In #6299 I forgot to modify the code in the rake task to check if a survey was already migrated. In these cases another (empty)
Questionnaireis associated to the survey. Then this emptyQuestionnaireuses to be the one resolved bysurvey.questionnaireand it renders empty in the backoffice and in the public views.This PR adds a check before migrating each survey and if
survey.questionnaire.present?the survey is not migrated.📌 Related Issues
📋 Subtasks
CHANGELOGupgrade notes, if required📷 Screenshots (optional)