additional timestamps declarations

This commit is contained in:
byte[] 2021-01-18 18:40:26 -05:00
parent f94c390207
commit f9ae13a350
6 changed files with 6 additions and 6 deletions

View file

@ -10,7 +10,7 @@ defmodule Philomena.ImageFaves.ImageFave do
schema "image_faves" do
belongs_to :user, User, primary_key: true
belongs_to :image, Image, primary_key: true
timestamps(inserted_at: :created_at, updated_at: false)
timestamps(inserted_at: :created_at, updated_at: false, type: :utc_datetime)
end
@doc false

View file

@ -10,7 +10,7 @@ defmodule Philomena.ImageHides.ImageHide do
schema "image_hides" do
belongs_to :user, User, primary_key: true
belongs_to :image, Image, primary_key: true
timestamps(inserted_at: :created_at, updated_at: false)
timestamps(inserted_at: :created_at, updated_at: false, type: :utc_datetime)
end
@doc false

View file

@ -11,7 +11,7 @@ defmodule Philomena.ImageVotes.ImageVote do
belongs_to :user, User, primary_key: true
belongs_to :image, Image, primary_key: true
field :up, :boolean
timestamps(inserted_at: :created_at, updated_at: false)
timestamps(inserted_at: :created_at, updated_at: false, type: :utc_datetime)
end
@doc false

View file

@ -11,7 +11,7 @@ defmodule Philomena.PollVotes.PollVote do
field :rank, :integer
timestamps(inserted_at: :created_at, updated_at: false)
timestamps(inserted_at: :created_at, updated_at: false, type: :utc_datetime)
end
@doc false

View file

@ -19,7 +19,7 @@ defmodule Philomena.Users.UserToken do
field :sent_to, :string
belongs_to :user, Philomena.Users.User
timestamps(inserted_at: :created_at, updated_at: false)
timestamps(inserted_at: :created_at, updated_at: false, type: :utc_datetime)
end
@doc """

View file

@ -17,7 +17,7 @@ defmodule Philomena.Versions.Version do
field :edit_reason, :string, virtual: true
field :difference, :any, virtual: true
timestamps(inserted_at: :created_at, updated_at: false)
timestamps(inserted_at: :created_at, updated_at: false, type: :utc_datetime)
end
@doc false