Skip to content
Snippets Groups Projects
Commit 0f4f39cc authored by pabois's avatar pabois
Browse files

add save for every websites

parent 4f860b79
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ class ContentMigration
Communication::Block::Heading.skip_callback :save, :after, :connect_and_sync_direct_sources
university = University.find(university_id)
ContentMigration.new(university).migrate_all
university.websites.each(&:save_and_sync)
ensure
Communication::Block.set_callback :save, :after, :connect_and_sync_direct_sources
Communication::Block::Heading.set_callback :save, :after, :connect_and_sync_direct_sources
......
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