From: Tom Hughes Date: Sun, 26 Oct 2014 11:39:00 +0000 (+0000) Subject: Fixes for offline mode X-Git-Tag: live~4354 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/b83c5b4b502debe8b211e584ee1c1d480250ee34 Fixes for offline mode --- diff --git a/config/environments/production.rb b/config/environments/production.rb index 2b1587a21..941070902 100644 --- a/config/environments/production.rb +++ b/config/environments/production.rb @@ -84,5 +84,7 @@ OpenStreetMap::Application.configure do config.log_formatter = ::Logger::Formatter.new # 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 + end end