def primary_key : String
#
class Jennifer::Migration::TableBuilder::CreateForeignKey
- Jennifer::Migration::TableBuilder::CreateForeignKey
- Jennifer::Migration::TableBuilder::Base
- Reference
- Object
Defined in:
jennifer/migration/table_builder/create_foreign_key.crConstructors
Instance Method Summary
- #column : String
-
#explain
Returns string presentation of invoked changes.
- #from_table : String
- #on_delete : Symbol
- #on_update : Symbol
- #primary_key : String
-
#process
Invokes current command.
- #to_table : String
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, from_table, to_table, column, primary_key, name, on_update, on_delete)
#
Instance Method Detail
def explain
#
Description copied from class Jennifer::Migration::TableBuilder::Base
Returns string presentation of invoked changes.
def process
#
Description copied from class Jennifer::Migration::TableBuilder::Base
Invokes current command.