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

Overview

Represents a removed column dependency.

This dependency can be used when a specific operation is dependent on a specific column being removed first.

Defined in:

marten/db/management/migrations/diff/dependency/removed_column.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, column_name : String) #

[View source]

Instance Method Detail

def app_label : String #

Returns the app label associated with the dependency.


[View source]
def column_name : String #

[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]