architex/priv/repo/migrations/20210716212330_change_event_id_name.exs

7 lines
154 B
Elixir

defmodule MatrixServer.Repo.Migrations.ChangeEventIdName do
use Ecto.Migration
def change do
rename table(:events), :id, to: :event_id
end
end