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

run script

parent 9ef4257c
No related branches found
No related tags found
No related merge requests found
...@@ -19,7 +19,7 @@ class BlocksMigration ...@@ -19,7 +19,7 @@ class BlocksMigration
return if item.blocks.any? return if item.blocks.any?
puts "#{item.university}, #{item.website}, #{item.class.to_s.demodulize}, #{item.id}, #{item}" puts "#{item.university}, #{item.website}, #{item.class.to_s.demodulize}, #{item.id}, #{item}"
# puts item.text.to_html # puts item.text.to_html
return # return
block = item.blocks.create university: item.university, template_kind: :chapter block = item.blocks.create university: item.university, template_kind: :chapter
data = block.data data = block.data
data['text'] = item.text.to_html data['text'] = item.text.to_html
......
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