Ecto v2.2.12 Ecto.Migration.Constraint 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

Link to this type

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