Skip to content

Commit

Permalink
Update 20220828142008_remove_drupal_gallery_from_node.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
jywarren authored Sep 6, 2022
1 parent dcd7db8 commit 5a1374a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion db/migrate/20220828142008_remove_drupal_gallery_from_node.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ def change
end
end
new_revision.body = gallery_images + new_revision.body
new_revision.save! unless new_revision.body.empty?
puts "#{new_revision.title} #{new_revision.body}"
new_revision.save! unless new_revision.body.empty? || new_revision.body == ""
end
end
end

0 comments on commit 5a1374a

Please sign in to comment.