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

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

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