enum
Marten::DB::Migration::Operation::Optimization::ResultType
Overview
Defines the various types of results that can be returned by a migration operation optimization.
Defined in:
marten/db/migration/operation/optimization/result_type.crEnum Members
-
COMPLETED =
0 -
A "completed" result indicates that the considered migration operation was indeed optimized and that a new set of operations should be used in lieu of the operation.
-
FAILED =
1 -
A "failed" result indicates that the considered migration operation cannot be optimized, which generally means that that incoming operation used for optimizing has a dependency to the considered operation (for example, a CreateTable operation that has a reference column to a table created by another CreateTable operation).
-
UNCHANGED =
2 -
An "unchanged" result indicates that no optimization can be done and that operations remain unchanged (for example, two completely unrelated operations that cannot be further optimized).
Instance Method Summary
-
#completed?
Returns
trueif this enum value equalsCOMPLETED -
#failed?
Returns
trueif this enum value equalsFAILED -
#unchanged?
Returns
trueif this enum value equalsUNCHANGED