cannery/priv/repo/migrations/20230204191547_record_invites.exs

12 lines
253 B
Elixir
Raw Permalink Normal View History

2023-02-04 16:46:37 -05:00
defmodule Cannery.Repo.Migrations.RecordInvites do
use Ecto.Migration
def change do
alter table(:users) do
add :invite_id, references(:invites, type: :binary_id)
end
rename table(:invites), :user_id, to: :created_by_id
end
end