diff --git a/db/migrate/20220828142008_remove_drupal_gallery_from_node.rb b/db/migrate/20220828142008_remove_drupal_gallery_from_node.rb index 5b69df08ff..49fc2df14f 100644 --- a/db/migrate/20220828142008_remove_drupal_gallery_from_node.rb +++ b/db/migrate/20220828142008_remove_drupal_gallery_from_node.rb @@ -13,7 +13,7 @@ def change end new_revision.body = gallery_images + new_revision.body puts "#{new_revision.title} #{new_revision.body}" - new_revision.save! unless new_revision.body.empty? || new_revision.body == "" + new_revision.save! unless new_revision.body.strip.empty? || new_revision.body.strip == "" end end end