remove tag_id from ammo group

This commit is contained in:
2022-02-09 23:45:10 -05:00
parent aa17240c83
commit bb4e6954eb
2 changed files with 6 additions and 11 deletions

View File

@ -8,7 +8,6 @@ defmodule Cannery.Repo.Migrations.CreateAmmoGroups do
add :price_paid, :float
add :notes, :text
add :tag_id, references(:tags, on_delete: :nothing, type: :binary_id)
add :ammo_type_id, references(:ammo_types, on_delete: :delete_all, type: :binary_id)
add :container_id, references(:containers, on_delete: :nothing, type: :binary_id)
add :user_id, references(:users, on_delete: :delete_all, type: :binary_id)
@ -16,7 +15,6 @@ defmodule Cannery.Repo.Migrations.CreateAmmoGroups do
timestamps()
end
create index(:ammo_groups, [:tag_id])
create index(:ammo_groups, [:ammo_type_id])
create index(:ammo_groups, [:container_id])
create index(:ammo_groups, [:user_id])