Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
Admin
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
osuny
Admin
Commits
2af6e24e
Unverified
Commit
2af6e24e
authored
1 year ago
by
Pierre-André Boissinot
Committed by
GitHub
1 year ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1089 from noesya/migration_script
add save for every websites
parents
4f860b79
0f4f39cc
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
app/services/content_migration.rb
+1
-0
1 addition, 0 deletions
app/services/content_migration.rb
with
1 addition
and
0 deletions
app/services/content_migration.rb
+
1
−
0
View file @
2af6e24e
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment