View Source Ash.Resource.Attribute.Helpers (ash v3.4.43)

Helpers for building attributes

Summary

Functions

Defines create and update timestamp attributes.

Functions

Link to this macro

timestamps(opts \\ [])

View Source (macro)

Defines create and update timestamp attributes.

Shorthand for Ash.Resource.Dsl.attributes.create_timestamp and Ash.Resource.Dsl.attributes.update_timestamp with the attribute names :inserted_at and :updated_at respectively. Any options passed to this helper are passed to both timestamp macros.