class Rotor::MigrationError < Rotor::Error

A migration failed (Rotor::Migrator): its version and class name; cause is the error it raised (a PG::ServerError, a Rotor::IrreversibleMigration...), nil when the migrator refused to run it (a version older than one applied). Its transaction was rolled back; the migrations before it stay applied.

/home/runner/work/rotor/rotor/src/errors.qz:53

Class methods

def self.new(version: Int, name: String, message: String) -> Rotor::MigrationError

The failure of migration version (class name): message. Raised while a rescue handles the error it wraps, which is its cause.

/home/runner/work/rotor/rotor/src/errors.qz:59

Methods

def version -> Int

The migration's version.

/home/runner/work/rotor/rotor/src/errors.qz:66

def name -> String

The migration's class name.

/home/runner/work/rotor/rotor/src/errors.qz:69