Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Run ReorderHierarchyJob synchronously in migration

Pavel Balashoue615525a597a
diff --git a/db/migrate/20220202140507_reorder_project_children.rb b/db/migrate/20220202140507_reorder_project_children.rb
index d964d0d077e..f865f4054de 100644
--- a/db/migrate/20220202140507_reorder_project_children.rb
+++ b/db/migrate/20220202140507_reorder_project_children.rb
@@ -28,6 +28,6 @@
class ReorderProjectChildren < ActiveRecord::Migration[6.1]
def up
- ::Projects::ReorderHierarchyJob.perform_later
+ ::Projects::ReorderHierarchyJob.new.perform
end
end