{"record":{"id":"25629cbff19cc28a","repo":"theforeman/foreman","slug":"there-are-migrations-pending-in-the-system","errorCode":null,"errorMessage":"There are migrations pending in the system.","messagePattern":"There are migrations pending in the system\\.","errorType":"exception","errorClass":"Foreman::MaintenanceException","httpStatus":503,"severity":"error","filePath":"app/controllers/concerns/foreman/controller/migration_checker.rb","lineNumber":17,"sourceCode":"module Foreman::Controller::MigrationChecker\n  extend ActiveSupport::Concern\n\n  included do\n    before_action :check_pending_migrations\n  end\n\n  def self.needs_migration?\n    return @needs_migration unless @needs_migration.nil?\n    @needs_migration = ::Foreman.pending_migrations?\n  end\n\n  private\n\n  def check_pending_migrations\n    if Foreman::Controller::MigrationChecker.needs_migration?\n      raise Foreman::MaintenanceException, _(\"There are migrations pending in the system.\")\n    end\n  end\nend\n","sourceCodeStart":1,"sourceCodeEnd":21,"githubUrl":"https://github.com/theforeman/foreman/blob/6b05625475cfe6aac31a88f8c8ee6e62e4efe620/app/controllers/concerns/foreman/controller/migration_checker.rb#L1-L21","documentation":"Error \"There are migrations pending in the system.\" thrown in theforeman/foreman.","triggerScenarios":"Thrown at app/controllers/concerns/foreman/controller/migration_checker.rb:17 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"6b05625475cfe6aac31a88f8c8ee6e62e4efe620","analyzedAt":"2026-08-23T17:46:34.094Z","schemaVersion":2},"datasetVersion":"2026-08-23T21:17:23.414Z"}