10 lines
197 B
Elixir
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
|