struct Prostore::Steps::Kind::AddForeignKey

Overview

Foreign-key kinds. SQLite has no ALTER TABLE ADD/DROP CONSTRAINT FOREIGN KEY for non-empty tables; both go through the table-rebuild helper. Postgres uses ADD CONSTRAINT NOT VALID + VALIDATE CONSTRAINT.

Defined in:

prostore/steps/step.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(table_name : String, foreign_key : Schema::ForeignKey) #

[View source]

Instance Method Detail

def clone #

[View source]
def copy_with(table_name _table_name = @table_name, foreign_key _foreign_key = @foreign_key) #

[View source]
def foreign_key : Schema::ForeignKey #

def table_name : String #