Skip to content
Snippets Groups Projects
Commit f1ba59a2 authored by Arnaud Levy's avatar Arnaud Levy
Browse files

reverse

parent b968c34e
No related branches found
No related tags found
No related merge requests found
......@@ -4,7 +4,7 @@ require 'communication/block/template/chapter'
class BlocksMigration
def self.cleanup
Communication::Website::Post.where(description: [nil, ""]).each do |post|
Communication::Website::Post.where.not(text: [nil, ""]).each do |post|
puts "#{post} (#{post.id}, #{post.university})"
if post.blocks.none?
puts " migrating"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment