remove non-mandatory ammo group fields

This commit is contained in:
shibao 2022-02-05 00:28:45 -05:00
parent 8479e420fe
commit ad3f48ccc9

View File

@ -53,9 +53,6 @@ defmodule Cannery.Ammo.AmmoGroup do
|> cast(attrs, [:count, :price_paid, :notes, :tag_id, :ammo_type_id, :container_id, :user_id]) |> cast(attrs, [:count, :price_paid, :notes, :tag_id, :ammo_type_id, :container_id, :user_id])
|> validate_required([ |> validate_required([
:count, :count,
:price_paid,
:notes,
:tag_id,
:ammo_type_id, :ammo_type_id,
:container_id, :container_id,
:user_id :user_id