diff --git a/lib/arrow/disruptions/disruption_v2.ex b/lib/arrow/disruptions/disruption_v2.ex index 768bf147..6c26899f 100644 --- a/lib/arrow/disruptions/disruption_v2.ex +++ b/lib/arrow/disruptions/disruption_v2.ex @@ -13,7 +13,7 @@ defmodule Arrow.Disruptions.DisruptionV2 do field :is_active, :boolean field :description, :string - timestamps() + timestamps(type: :utc_datetime) end @doc false diff --git a/priv/repo/migrations/20241231110033_create_disruptionsv2.exs b/priv/repo/migrations/20241231110033_create_disruptionsv2.exs index 0de03543..d583e5d1 100644 --- a/priv/repo/migrations/20241231110033_create_disruptionsv2.exs +++ b/priv/repo/migrations/20241231110033_create_disruptionsv2.exs @@ -8,7 +8,7 @@ defmodule Arrow.Repo.Migrations.CreateDisruptionsv2 do add :is_active, :boolean add :description, :text - timestamps() + timestamps(type: :timestamptz) end end end diff --git a/priv/repo/structure.sql b/priv/repo/structure.sql index a2d30a2c..b78f0c4a 100644 --- a/priv/repo/structure.sql +++ b/priv/repo/structure.sql @@ -414,8 +414,8 @@ CREATE TABLE public.disruptionsv2 ( mode character varying(255), is_active boolean, description text, - inserted_at timestamp(0) without time zone NOT NULL, - updated_at timestamp(0) without time zone NOT NULL + inserted_at timestamp with time zone NOT NULL, + updated_at timestamp with time zone NOT NULL );