mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 14:57:59 +01:00
additional timestamps declarations
This commit is contained in:
parent
f94c390207
commit
f9ae13a350
6 changed files with 6 additions and 6 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 """
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue