diff --git a/priv/repo/migrations/20190114162055_remove_address_type.exs b/priv/repo/migrations/20190114162055_remove_address_type.exs index 74b73b7a3..360f77188 100644 --- a/priv/repo/migrations/20190114162055_remove_address_type.exs +++ b/priv/repo/migrations/20190114162055_remove_address_type.exs @@ -3,8 +3,8 @@ defmodule Mobilizon.Repo.Migrations.RemoveAddressType do require Logger def up do - execute "DROP TYPE IF EXISTS address_type" execute "ALTER TABLE \"events\" DROP COLUMN IF EXISTS address_type" + execute "DROP TYPE IF EXISTS address_type" rename table(:events), :phone, to: :phone_address end end