Skip to content

Ecto type for Timex.Duration? #84

@Fire-Dragon-DoL

Description

@Fire-Dragon-DoL

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions