]> git.openstreetmap.org Git - rails.git/blobdiff - config/environment.rb
Add a "database readonly" state that allows all writes to the database
[rails.git] / config / environment.rb
index 495f94d80a63f08b22f639bdcbaaace8c6d946e0..930fc81e9bdbf30143b82bf6f7bc2c66c33e2269 100644 (file)
@@ -18,6 +18,7 @@ API_VERSION = ENV['OSM_API_VERSION'] || '0.5'
 #   :online - online and operating normally
 #   :api_readonly - site online but API in read-only mode
 #   :api_offline - site online but API offline
+#   :database_readonly - database and site in read-only mode
 #   :database_offline - database offline with site in emergency mode
 #
 OSM_STATUS = :online
@@ -74,8 +75,3 @@ Rails::Initializer.run do |config|
   # Make Active Record use UTC-base instead of local time
   # config.active_record.default_timezone = :utc
 end
-
-# This has to be after the above block for some reason (doesnt pull in /lib/osm.rb?)
-POTLATCH_PRESETS = Potlatch::Potlatch.get_presets()
-
-