class Jennifer::Migration::TableBuilder::CreateIndex

Defined in:

jennifer/migration/table_builder/create_index.cr

Constructors

Instance Method Summary

Instance methods inherited from class Jennifer::Migration::TableBuilder::Base

adapter : Adapter::Base adapter, column_exists?(*args, **options)
column_exists?(*args, **options, &)
column_exists?
, explain explain, index_exists?(*args, **options)
index_exists?(*args, **options, &)
index_exists?
, name : String name, process process, process_commands process_commands, schema_processor(*args, **options)
schema_processor(*args, **options, &)
schema_processor
, table_exists?(*args, **options)
table_exists?(*args, **options, &)
table_exists?

Constructor methods inherited from class Jennifer::Migration::TableBuilder::Base

new(adapter, name : String | Symbol) new

Constructor Detail

def self.new(adapter, table_name : String, index_name, fields : Array, type : Symbol?, lengths, orders) #

[View source]

Instance Method Detail

def explain #
Description copied from class Jennifer::Migration::TableBuilder::Base

Returns string presentation of invoked changes.


[View source]
def fields : Array(Symbol) #

[View source]
def index_name : String #

[View source]
def lengths : Hash(Symbol, Int32) #

[View source]
def orders : Hash(Symbol, Symbol) #

[View source]
def process #
Description copied from class Jennifer::Migration::TableBuilder::Base

Invokes current command.


[View source]
def type : Symbol? #

[View source]