jerel / ecto_fields

Provides common fields for Ecto
MIT License
44 stars 7 forks source link

EctoFields

Provides commonly used fields for Ecto projects.

Installation

To install EctoFields:

  1. Add ecto_fields to your list of dependencies in mix.exs :
    def deps do
      [{:ecto_fields, "~> 1.3.0"}]
    end
  2. Use the fields in your Ecto schema:
    schema "user" do
      field :name, :string
      field :email, EctoFields.Email
      field :website, EctoFields.URL
      field :ip_address, EctoFields.IP
    end

    Current fields

Roadmap

Likely:

Maybe: