class Athena::ORM::Migrations::Version::ExecutionResult
inherits Reference
#
The outcome of executing a migration.
Constructors#
.new(version : AORM::Migrations::Version, direction : AORM::Migrations::Version::Direction = :up, executed_at : Time | Nil = nil)#
Methods#
#direction : AORM::Migrations::Version::Direction#
Returns whether the migration was applied or reverted.
#exception : ::Exception | ::Nil#
Returns the exception that failed the migration, if any.
#set_error(error : Bool, exception : ::Exception | Nil = nil) : Nil#
Sets whether the migration failed, with the exception that failed it.
#skipped=(skipped : Bool)#
Whether the migration was skipped, see AORM::Migrations::AbstractMigration#skip_if.
#skipped? : Bool#
Whether the migration was skipped, see AORM::Migrations::AbstractMigration#skip_if.
#state : AORM::Migrations::Version::State#
The stage the migration's execution is in, or was in when it was skipped or failed.
#state=(state : AORM::Migrations::Version::State)#
The stage the migration's execution is in, or was in when it was skipped or failed.