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

[View source]
def failed? #

[View source]
def unchanged? #

[View source]