fix: inconsistent sorting
on components that were inserted in quick succession
This commit is contained in:
@@ -18,7 +18,7 @@ defmodule ComponentsElixir.Inventory.Category do
|
||||
has_many :children, Category, foreign_key: :parent_id
|
||||
has_many :components, Component
|
||||
|
||||
timestamps()
|
||||
timestamps(type: :naive_datetime_usec)
|
||||
end
|
||||
|
||||
@doc false
|
||||
|
||||
@@ -23,7 +23,7 @@ defmodule ComponentsElixir.Inventory.Component do
|
||||
belongs_to :category, Category
|
||||
belongs_to :storage_location, StorageLocation
|
||||
|
||||
timestamps()
|
||||
timestamps(type: :naive_datetime_usec)
|
||||
end
|
||||
|
||||
@doc false
|
||||
|
||||
@@ -22,7 +22,7 @@ defmodule ComponentsElixir.Inventory.StorageLocation do
|
||||
has_many :children, StorageLocation, foreign_key: :parent_id
|
||||
has_many :components, Component
|
||||
|
||||
timestamps()
|
||||
timestamps(type: :naive_datetime_usec)
|
||||
end
|
||||
|
||||
@doc false
|
||||
|
||||
Reference in New Issue
Block a user