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

10 lines
197 B
Elixir
Raw Permalink Normal View History

2019-03-23 17:53:53 +00:00
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