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

reset cached schema in case of changes

Markus Kahl217326715e69
diff --git a/db/migrate/20221017073431_remove_orphaned_tokens.rb b/db/migrate/20221017073431_remove_orphaned_tokens.rb
index 968a1640012..2a87e2eb71b 100644
--- a/db/migrate/20221017073431_remove_orphaned_tokens.rb
+++ b/db/migrate/20221017073431_remove_orphaned_tokens.rb
@@ -10,6 +10,9 @@ class RemoveOrphanedTokens < ActiveRecord::Migration[7.0]
change_column_type! :tokens, :user_id, :bigint
add_foreign_key :tokens, :users
+
+ User.reset_column_information
+ Token::Base.reset_column_information
end
def down