first commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
class HealthController < ActionController::API
|
||||
def show
|
||||
ActiveRecord::Base.connection.select_value("SELECT 1")
|
||||
head :ok
|
||||
rescue ActiveRecord::ActiveRecordError
|
||||
head :service_unavailable
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user