mobilizon.chapril.org-mobil.../priv/repo/migrations/20190114162055_remove_address_type.exs
Thomas Citharel 289ba03960
Remove address_type and rename phone to phone_address
An event can indeed have several address types

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-01-14 17:48:08 +01:00

12 lines
256 B
Elixir

defmodule Mobilizon.Repo.Migrations.RemoveAddressType do
use Ecto.Migration
def up do
alter table(:events) do
remove(:address_type)
end
execute "DROP TYPE address_type"
rename table(:events), :phone, to: :phone_address
end
end