Skip to content
Snippets Groups Projects
Unverified Commit 2af6e24e authored by Pierre-André Boissinot's avatar Pierre-André Boissinot Committed by GitHub
Browse files

Merge pull request #1089 from noesya/migration_script

add save for every websites
parents 4f860b79 0f4f39cc
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