class Drift::Migration

Defined in:

drift/migration.cr

Constructors

Instance Method Summary

Constructor Detail

def self.from_io(io, id : Int64, filename : String | Nil = nil) : self #

[View source]
def self.load_file(filename : String) : self #

[View source]
def self.new(id : Int64, filename : String | Nil = nil) #

[View source]

Instance Method Detail

def add(type : Type, statement : String) #

[View source]
def filename : String | Nil #

[View source]
def id : Int64 #

[View source]
def run(type : Type, db) #

[View source]
def statements_for(type : Type) #

[View source]