2018-10-11 15:37:39 +00:00
|
|
|
defmodule Mobilizon.Repo.Migrations.RemoveSlugForEvent do
|
2018-07-04 12:29:17 +00:00
|
|
|
use Ecto.Migration
|
|
|
|
|
|
|
|
def up do
|
|
|
|
alter table(:events) do
|
|
|
|
remove(:slug)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def down do
|
|
|
|
alter table(:events) do
|
2019-02-22 13:18:52 +00:00
|
|
|
add(:slug, :string, null: false)
|
2018-07-04 12:29:17 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|