struct

Ralph::Schema::ModelForeignKey

Inherits Struct / Value / Object

Foreign key definition from a model association

Constructors

new(from_column : String, to_table : String, to_column : String, on_delete : Symbol | Nil = nil, on_update : Symbol | Nil = nil)
Source

Instance methods

clone
Source
copy_with(from_column _from_column = @from_column, to_table _to_table = @to_table, to_column _to_column = @to_column, on_delete _on_delete = @on_delete, on_update _on_update = @on_update)
Source
from_column
on_delete
on_update
to_column
to_table