Can disable pending migration check in dev environment

If OPENPROJECT_DISABLE__MIGRATIONS__CHECK is set to 'true', then the
pending migrations screen will not be displayed. Useful to test some
stuff while working on migrations. But a yellow annoying banner will be
displayed in the bottom of OpenProject page instead.
This commit is contained in:
Christophe Bliard
2024-04-02 17:59:01 +02:00
parent 7ba30580d4
commit da903583f0
+1 -1
View File
@@ -80,7 +80,7 @@ Rails.application.configure do
config.active_support.disallowed_deprecation_warnings = []
# Raise an error on page load if there are pending migrations.
config.active_record.migration_error = :page_load
config.active_record.migration_error = ENV["OPENPROJECT_DISABLE__MIGRATIONS__CHECK"] == "true" ? false : :page_load
# Highlight code that triggered database queries in logs.
config.active_record.verbose_query_logs = true