View Source EctoMigrationDefault protocol (ash_postgres v2.4.17)

Allows configuring how values are translated to default values in migrations.

Still a work in progress, but covers most standard values aside from maps.

Summary

Types

t()

All the types that implement this protocol.

Functions

Returns the text (elixir code) that will be placed into a migration as the default value

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

to_default(value)

Returns the text (elixir code) that will be placed into a migration as the default value