frenzy/priv/repo/migrations/20190323153614_groups_add_u...

10 lines
197 B
Elixir

defmodule Frenzy.Repo.Migrations.GroupsAddUser do
use Ecto.Migration
def change do
alter table(:groups) do
add :user_id, references(:users, on_delete: :delete_all)
end
end
end