defmodule JwMinistryApi.Repo.Migrations.AddPublisherGroupId do
  use Ecto.Migration

  def change do
    alter table(:publishers) do
      add :group_id, references(:groups, on_delete: :nothing)
    end

    create index(:publishers, [:group_id])
  end
end

Add group_id FK to publishers
Add group_id FK to publishers

Created migration that adds group_id to the publishers table

melbystyle/jw_ministry_api,melbystyle/jw_ministry_api