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

move null_db_fallback to constants

ulferts374e1c6cf38e
diff --git a/lib/open_project/null_db_fallback.rb b/config/constants/open_project/null_db_fallback.rb
similarity index 100%
rename from lib/open_project/null_db_fallback.rb
rename to config/constants/open_project/null_db_fallback.rb
diff --git a/config/initializers/05-null_db_fallback.rb b/config/initializers/05-null_db_fallback.rb
index 0478dd83cfa..21ad5e55391 100644
--- a/config/initializers/05-null_db_fallback.rb
+++ b/config/initializers/05-null_db_fallback.rb
@@ -30,5 +30,6 @@
# As initializers and other parts of the boot sequence rely on calls accessing
# the DB, the null db gem is used to fake the existence of a database in cases where
# the db has not been created yet.
+require Rails.root.join('config/constants/open_project/null_db_fallback')
OpenProject::NullDbFallback.fallback