1
votes

How do I define a transient field in Ecto, i.e. a field that will not be persisted along the rest of the schema?

I searched everywhere including the documentation and can't find anything referring to this terminology.

1

1 Answers

6
votes

Ecto uses a different terminology for transient field, :virtual, as defined in the documentation:

field :password, :string, virtual: true