]> git.openstreetmap.org Git - rails.git/commitdiff
Fixes for offline mode
authorTom Hughes <tom@compton.nu>
Sun, 26 Oct 2014 11:39:00 +0000 (11:39 +0000)
committerTom Hughes <tom@compton.nu>
Sun, 26 Oct 2014 11:39:00 +0000 (11:39 +0000)
config/environments/production.rb

index 2b1587a21263813ad5dc780bf568e1c7f88eaa84..941070902d9f32c08a910a25c48d42c60e533dac 100644 (file)
@@ -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