Ecto.Migration.Constraint (Ecto SQL v3.6.2) View Source

Used internally by adapters.

To define a constraint in a migration, see Ecto.Migration.constraint/3.

Link to this section Summary

Link to this section Types

Specs

t() :: %Ecto.Migration.Constraint{
  check: String.t() | nil,
  comment: String.t() | nil,
  exclude: String.t() | nil,
  name: atom(),
  prefix: atom() | nil,
  table: String.t(),
  validate: boolean()
}