mirror of
https://github.com/opf/openproject.git
synced 2026-06-14 03:30:14 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user