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

Used internally by adapters.

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

Summary

Types

@type 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()
}