module
Prostore::Schema
Defined in:
prostore/schema.crprostore/schema/enum_member.cr
prostore/schema/field.cr
prostore/schema/fingerprint.cr
prostore/schema/foreign_key.cr
prostore/schema/index.cr
prostore/schema/query.cr
Constant Summary
-
ACTIONS =
[:no_action, :restrict, :cascade, :set_null, :set_default] -
A foreign-key declaration (ADR-0012).
references_tableis captured as a string (the target model's resolved table name) so the schema struct does not hold a class reference. Resolution to the actual target column happens at planner time —references_columnsmay be empty when the user did not passreferences_fields:, in which case the planner resolves to the target table's primary key.