Skip to content

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)#

View source

Methods#

#direction : AORM::Migrations::Version::Direction#

Returns whether the migration was applied or reverted.

View source

#error? : Bool#

Returns true if the migration failed.

View source

#exception : ::Exception | ::Nil#

Returns the exception that failed the migration, if any.

View source

#executed_at : Time | ::Nil#

The time the migration was executed at.

View source

#executed_at=(executed_at : Time | Nil)#

The time the migration was executed at.

View source

#has_sql? : Bool#

Returns true if the migration executed any SQL.

View source

#set_error(error : Bool, exception : ::Exception | Nil = nil) : Nil#

Sets whether the migration failed, with the exception that failed it.

View source

#skipped=(skipped : Bool)#

Whether the migration was skipped, see AORM::Migrations::AbstractMigration#skip_if.

View source

#skipped? : Bool#

Whether the migration was skipped, see AORM::Migrations::AbstractMigration#skip_if.

View source

#sql : Array(AORM::Migrations::Query)#

The SQL the migration executed.

View source

#sql=(sql : Array(AORM::Migrations::Query))#

The SQL the migration executed.

View source

#state : AORM::Migrations::Version::State#

The stage the migration's execution is in, or was in when it was skipped or failed.

View source

#state=(state : AORM::Migrations::Version::State)#

The stage the migration's execution is in, or was in when it was skipped or failed.

View source

#time : Time::Span | ::Nil#

How long executing the migration took.

View source

#time=(time : Time::Span | Nil)#

How long executing the migration took.

View source

#version : AORM::Migrations::Version#

Returns the version of the executed migration.

View source