Class: Ready::For::Migration::HealthController
- Inherits:
-
ActionController::Base
- Object
- ActionController::Base
- Ready::For::Migration::HealthController
- Includes:
- HealthActionInspectable
- Defined in:
- app/controllers/ready/for/migration/health_controller.rb
Instance Method Summary collapse
Methods included from HealthActionInspectable
Instance Method Details
#readiness ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/controllers/ready/for/migration/health_controller.rb', line 7 def readiness if ApplicationRecord.connection.migration_context.needs_migration? head 503 else head 200 end end |