class Marten::DB::Management::Migrations::Diff

Overview

Represents a migrations diff.

This class gives the ability to compute the changes needed to go from an initial project state to a target state. This is mostly used to generate new migration files when changes have been made to existing models.

Defined in:

marten/db/management/migrations/diff.cr
marten/db/management/migrations/diff/dependency/added_column.cr
marten/db/management/migrations/diff/dependency/base.cr
marten/db/management/migrations/diff/dependency/changed_column.cr
marten/db/management/migrations/diff/dependency/created_table.cr
marten/db/management/migrations/diff/dependency/removed_column.cr
marten/db/management/migrations/diff/migration.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(from_state : DB::Management::ProjectState, to_state : DB::Management::ProjectState) #

[View source]
def self.new #

[View source]

Instance Method Detail

def detect(apps : Array(Apps::Config) | Nil = nil) #

[View source]