Files
todo-back/app/controllers/health_controller.rb
T
2026-08-07 19:53:30 -05:00

9 lines
211 B
Ruby

class HealthController < ActionController::API
def show
ActiveRecord::Base.connection.select_value("SELECT 1")
head :ok
rescue ActiveRecord::ActiveRecordError
head :service_unavailable
end
end