From 550f6a6420938a3104e87a76fdd39d351873c27c Mon Sep 17 00:00:00 2001 From: shibao Date: Thu, 30 Mar 2023 22:01:21 -0400 Subject: [PATCH] add migration for ammo type table and column --- .../20230331015554_rename_ammo_type_to_type.exs | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 priv/repo/migrations/20230331015554_rename_ammo_type_to_type.exs diff --git a/priv/repo/migrations/20230331015554_rename_ammo_type_to_type.exs b/priv/repo/migrations/20230331015554_rename_ammo_type_to_type.exs new file mode 100644 index 0000000..3f94bca --- /dev/null +++ b/priv/repo/migrations/20230331015554_rename_ammo_type_to_type.exs @@ -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