class Marten::DB::Management::Migrations::Diff::Dependency::CreatedTable

Overview

Represents a created table dependency.

This dependency can be used when a specific operation is dependent on a specific table being created first.

Defined in:

marten/db/management/migrations/diff/dependency/created_table.cr

Constructors

Instance Method Summary

Instance methods inherited from class Marten::DB::Management::Migrations::Diff::Dependency::Base

app_label app_label, dependent?(operation : DB::Migration::Operation::Base) : Bool dependent?

Constructor Detail

def self.new(app_label : String, table_name : String) #

[View source]

Instance Method Detail

def app_label : String #

Returns the app label associated with the dependency.


[View source]
def dependent?(operation : DB::Migration::Operation::Base) : Bool #

Returns true if the given operation depends on the considered dependency.


[View source]
def table_name : String #

[View source]