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

Fix executing the removal of journal_versions

Oliver Güntherdb401c553f23
diff --git a/db/migrate/20210726070813_remove_journal_versions.rb b/db/migrate/20210726070813_remove_journal_versions.rb
new file mode 100644
index 00000000000..0e72a93da0c
--- /dev/null
+++ b/db/migrate/20210726070813_remove_journal_versions.rb
@@ -0,0 +1,13 @@
+require_relative './20190724093332_add_journal_versions_table'
+
+# db/migrate/20200522140244_remove_journal_versions_table.rb
+# incorrectly removes journal_versions
+class RemoveJournalVersions < ActiveRecord::Migration[6.1]
+ def up
+ ::AddJournalVersionsTable.new.down
+ end
+
+ def down
+ # Nothing to do
+ end
+end