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.cr

Enum 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

Instance Method Detail

def completed? #

Returns true if this enum value equals COMPLETED


[View source]
def failed? #

Returns true if this enum value equals FAILED


[View source]
def unchanged? #

Returns true if this enum value equals UNCHANGED


[View source]