struct

Prostore::Steps::Kind::AddForeignKey

Inherits Struct < Value < Object

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.

Constructors

new(table_name : String, foreign_key : Schema::ForeignKey)
Source

Instance methods

clone
Source
copy_with(table_name _table_name = @table_name, foreign_key _foreign_key = @foreign_key)
Source
foreign_key
table_name