frenzy/priv/repo/migrations/20190321223329_feeds_add_gr...

10 lines
198 B
Elixir

defmodule Frenzy.Repo.Migrations.FeedsAddGroup do
use Ecto.Migration
def change do
alter table(:feeds) do
add :group_id, references(:groups, on_delete: :delete_all)
end
end
end