diff --git a/lib/tasks/evm_application.rb b/lib/tasks/evm_application.rb index 15c99ee591c..85f58d9080a 100644 --- a/lib/tasks/evm_application.rb +++ b/lib/tasks/evm_application.rb @@ -202,7 +202,7 @@ def self.encryption_key_valid? end def self.deployment_status - context = ActiveRecord::MigrationContext.new('db/migrate') + context = ActiveRecord::MigrationContext.new(Rails.application.config.paths["db/migrate"]) return "new_deployment" if context.current_version.zero? return "new_replica" if MiqServer.my_server.nil? return "upgrade" if context.needs_migration?