add migration for ammo type table and column

This commit is contained in:
shibao 2023-03-30 22:01:21 -04:00
parent 88c3f15fc8
commit 550f6a6420

View File

@ -0,0 +1,8 @@
defmodule Cannery.Repo.Migrations.RenameAmmoTypeToType do
use Ecto.Migration
def change do
rename table(:ammo_types), to: table(:types)
rename table(:packs), :ammo_type_id, to: :type_id
end
end