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

dry run

parent f3ce2a7a
No related branches found
No related tags found
No related merge requests found
......@@ -16,10 +16,10 @@ class BlocksMigration
def self.cleanup_item(item)
return if item.text.blank?
puts "#{item} (#{item.id}, #{item.university}, #{item.website})"
puts "#{item.university}, #{item.website}, #{item.id}, #{item}"
return if item.blocks.any?
puts " migrating"
puts item.text.to_html
# puts item.text.to_html
return
block = item.blocks.create university: item.university, template_kind: :chapter
data = block.data
......
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