forked from External/greenlight
Reverted 500 error on migration failed
This commit is contained in:
parent
9bd5a659d5
commit
459d0ed582
|
@ -49,7 +49,7 @@ class ApplicationController < ActionController::Base
|
||||||
|
|
||||||
# Show an information page when migration fails and there is a version error.
|
# Show an information page when migration fails and there is a version error.
|
||||||
def migration_error?
|
def migration_error?
|
||||||
render :migration_error, status: 500 unless ENV["DB_MIGRATE_FAILED"].blank?
|
render :migration_error unless ENV["DB_MIGRATE_FAILED"].blank?
|
||||||
end
|
end
|
||||||
|
|
||||||
def maintenance_mode?
|
def maintenance_mode?
|
||||||
|
|
Loading…
Reference in New Issue