class Drift::Migrator

Defined in:

drift/migrator.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(db : DB::Connection | DB::Database, context : Drift::Context) #

[View source]

Class Method Detail

def self.from_path(db, path : String) #

[View source]

Instance Method Detail

def after_apply(&proc : AfterCallback) #

[View source]
def after_rollback(&proc : AfterCallback) #

[View source]
def applied : Array(MigrationEntry) #

[View source]
def applied?(id : Int64) : Bool #

[View source]
def applied_ids #

[View source]
def apply(id : Int64) #

[View source]
def apply(*ids : Int64) #

[View source]
def apply! #

[View source]
def apply_plan #

[View source]
def before_apply(&proc : BeforeCallback) #

[View source]
def before_rollback(&proc : BeforeCallback) #

[View source]
def context : Context #

[View source]
def db : DB::Database | DB::Connection #

[View source]
def pending? #

[View source]
def prepare! #

[View source]
def prepared? : Bool #

[View source]
def reset! #

[View source]
def reset_plan #

[View source]
def rollback(id : Int64) #

[View source]
def rollback(ids : Array(Int64)) #

[View source]
def rollback(*ids : Int64) #

[View source]
def rollback_plan #

[View source]