mobilizon/priv/repo/migrations/20191106114524_remove_floor_from_addresses.exs
Thomas Citharel 0e7cf89492
Remove floor
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2019-11-08 19:39:02 +01:00

16 lines
263 B
Elixir

defmodule Mobilizon.Storage.Repo.Migrations.RemoveFloorFromAddresses do
use Ecto.Migration
def up do
alter table(:addresses) do
remove(:floor)
end
end
def down do
alter table(:addresses) do
add(:floor, :string)
end
end
end