Skip to content
Snippets Groups Projects
Unverified Commit a48f92f0 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

scope migration to published blocks

parent b04edc22
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ class ContentMigration
puts "----------------------[migration] #{object} - #{object.class} - #{object.id}"
heading = nil
heading_position = 0
object.blocks.each do |block|
object.blocks.published.each do |block|
# ignore blocks already inside headings
next if block.heading.present?
# Move title from block to heading
......
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