Hello,
Is possible to use Timex.Duration (or some Timex.Duration.Ecto) as type for an Ecto field?
The purpose is to store, for example, a delay of something. E.g. "do not use this account for 3 weeks" in a ban-like system.
In an ideal world, it would encode to postgres interval type too.
Is there any chance this is supported?
Hello,
Is possible to use Timex.Duration (or some
Timex.Duration.Ecto) as type for an Ecto field?The purpose is to store, for example, a delay of something. E.g. "do not use this account for 3 weeks" in a ban-like system.
In an ideal world, it would encode to postgres
intervaltype too.Is there any chance this is supported?