diff --git a/app/services/blocks_migration.rb b/app/services/blocks_migration.rb
index d88ca77c416616ed761ceb5ea1d8f08c19ae1b23..c8d25e13bba90d2ee4518fed42b64351e4e39699 100644
--- a/app/services/blocks_migration.rb
+++ b/app/services/blocks_migration.rb
@@ -4,7 +4,8 @@ require 'communication/block/template/chapter'
 class BlocksMigration
 
   def self.cleanup
-    Communication::Website::Post.where.not(text: [nil, ""]).each do |post|
+    Communication::Website::Post.find_each do |post|
+      next if post.text.blank?
       puts "#{post} (#{post.id}, #{post.university})"
       if post.blocks.none?
         puts "  migrating"