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

Make migration 20221017073431 reversible

Christophe Bliarda70ce137d5a1
diff --git a/db/migrate/20221017073431_remove_orphaned_tokens.rb b/db/migrate/20221017073431_remove_orphaned_tokens.rb
index 61c804451ae..0f7dfc60a03 100644
--- a/db/migrate/20221017073431_remove_orphaned_tokens.rb
+++ b/db/migrate/20221017073431_remove_orphaned_tokens.rb
@@ -5,6 +5,6 @@ class RemoveOrphanedTokens < ActiveRecord::Migration[7.0]
end
def down
- # Nothing to do
+ remove_foreign_key :tokens, :users
end
end