timex_ecto v1.0.1 Timex.Ecto.Timestamps
Provides a simple way to use Timex with Ecto timestamps.
Example
defmodule User do
use Ecto.Model
use Timex.Ecto.Timestamps
schema "user" do
field :name, :string
timestamps
end
For potentially easier use with Phoenix, add the following in web/web.ex
:
def model do
quote do
use Ecto.Model
use Timex.Ecto.Timestamps
end
end
This will bring Timex timestamps into scope in all your models