289ba03960
An event can indeed have several address types Signed-off-by: Thomas Citharel <tcit@tcit.fr>
12 lines
256 B
Elixir
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
|