class Marten::DB::Management::Migrations::Recorder

Overview

The migration recorder class.

The migration recorder is responsible for recording the fact that specific migrations where applied to the DB. It does so by creating a "migration record" for each of the applied migration that is persisted in the marten_migrations table of the current database. The whole migration mechanism relies on the recorder in order to know which migrations where previously applied for each installed application.

Defined in:

marten/db/management/migrations/recorder.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(connection : Connection::Base) #

[View source]

Instance Method Detail

def applied_migrations #

[View source]
def record(app_label : String, name : String) #

[View source]
def record(migration : Migration) #

[View source]
def setup : Nil #

[View source]
def unrecord(app_label : String, name : String) #

[View source]
def unrecord(migration : Migration) #

[View source]