Health Check Endpoint
Create a controller for health check in app/controllers/health_controller.rb:
Controller#
Class#
Create a class for health check:
Route#
Define a route in config/routes.rb:
Visit http://localhost:3000/heartbeat
in your browser or send a GET request to that endpoint to see the health check results.