Set domain timestamps type to utc_datetime

Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
This commit is contained in:
marcin mikołajczak 2023-11-14 13:55:28 +01:00
parent c3b989951a
commit 3075b8c923
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ defmodule Pleroma.Domain do
field(:resolves, :boolean, default: false)
field(:last_checked_at, :naive_datetime)
timestamps()
timestamps(type: :utc_datetime)
end
def changeset(%__MODULE__{} = domain, params \\ %{}) do

View file

@ -8,7 +8,7 @@ defmodule Pleroma.Repo.Migrations.CreateDomains do
add(:resolves, :boolean)
add(:last_checked_at, :naive_datetime)
timestamps()
timestamps(type: :utc_datetime)
end
create_if_not_exists(unique_index(:domains, [:domain]))