Ecto.Adapters.Mnesia.Constraint.ForeignKey (Ecto3 Mnesia v0.3.0) View Source

Represents a foreignkey constraint

Link to this section Summary

Functions

Returns newly created foreign key struct

Link to this section Types

Specs

opt() :: {:name, String.t()}

Specs

opts() :: [opt()]

Specs

t() :: %Ecto.Adapters.Mnesia.Constraint.ForeignKey{
  errors: [term()],
  fields: Keyword.t(),
  from: Ecto.Adapters.Mnesia.Source.t() | nil,
  name: String.t() | nil,
  to: Ecto.Adapters.Mnesia.Source.t() | nil
}

Link to this section Functions

Link to this function

new(from, rel, opts \\ [])

View Source

Specs

new(Ecto.Adapters.Mnesia.Source.t(), atom(), opts()) :: t()

Returns newly created foreign key struct