Files
2026-08-08 21:14:10 -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