data Rotor::Reference(table: String, column: String, on_delete: Symbol?)

A column's foreign key: the table and column it references, and its ON DELETE action (:cascade, :set_null, :restrict, :no_action; nil: none written).

/home/runner/work/rotor/rotor/src/migration.qz:20

Methods

def to_h -> Hash[Symbol, Object]

The fields as a Hash, by name.

/home/runner/work/rotor/rotor/src/migration.qz:20

def with(*, table: String = …, column: String = …, on_delete: Symbol? = …) -> Rotor::Reference

A copy with the fields given replaced.

/home/runner/work/rotor/rotor/src/migration.qz:20

def table -> String

/home/runner/work/rotor/rotor/src/migration.qz:20

def column -> String

/home/runner/work/rotor/rotor/src/migration.qz:20

def on_delete -> Symbol?

/home/runner/work/rotor/rotor/src/migration.qz:20