Ecto 2.2.11 issue with microseconds and timestamp

Anyone got this strange message after upgrading to Ecto 2.2.11?

https://github.com/elixir-ecto/ecto/issues/2727

Update

Just downgrade to 2.2.10 and it’s working.

Environment

Elixir 1.7.2
Erlang 21.0.5

Current behavior

`** (FunctionClauseError) no function clause matching in Ecto.Schema. timestamps /2

The following arguments were given to Ecto.Schema.__timestamps__/2:

    # 1
    :naive_datetime

    # 2
    :microseconds

Attempted function clauses (showing 4 out of 4):

    def __timestamps__(:naive_datetime, :second)
    def __timestamps__(:naive_datetime, :microsecond)
    def __timestamps__(type, :second)
    def __timestamps__(type, :microsecond)`

Expected behavior

Changeset working as previous.

OK. After upgrade back again to 2.2.11 and cleaning _build on my umbrella I confirm that it’s working as intended again. Thanks @josevalim

4 Likes