Move status into the settings object

Only the very early boot code needs to look at the value
from the environment directly.
This commit is contained in:
Tom Hughes 2019-03-16 16:29:12 +00:00
parent 6600221fe3
commit 141df02e67
14 changed files with 49 additions and 55 deletions

View file

@ -95,7 +95,7 @@ Rails.application.configure do
end
# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false unless STATUS == :database_offline
config.active_record.dump_schema_after_migration = false unless Settings.status == "database_offline"
# Enable autoloading of dependencies.
config.enable_dependency_loading = true