In Elixir/Ecto, how do I change the default value of an existing naive_datetime field to now in a given timezone?

前端 未结 0 899
甜味超标
甜味超标 2021-01-25 04:55

Suppose I have this schema:

  schema "events" do
    field :start, :naive_datetime
  end

I\'d like to set the default value of the

相关标签:
回答
  • 消灭零回复
提交回复
热议问题