GRN2-xx: Migration Error now returns 500 and added the option to disable cache (#770)

* Added the option to disable cache

* Remove put statements
This commit is contained in:
farhatahmad
2019-08-28 17:00:07 -04:00
committed by Jesus Federico
parent 760c942780
commit 9bd5a659d5
3 changed files with 6 additions and 2 deletions

View File

@ -49,7 +49,7 @@ class ApplicationController < ActionController::Base
# Show an information page when migration fails and there is a version error.
def migration_error?
render :migration_error unless ENV["DB_MIGRATE_FAILED"].blank?
render :migration_error, status: 500 unless ENV["DB_MIGRATE_FAILED"].blank?
end
def maintenance_mode?