Edit

kmx.io/kmxgit/priv/repo/migrations/20211118084129_create_users_organisations.exs

Branch :

  • priv/repo/migrations/20211118084129_create_users_organisations.exs
  • defmodule Kmxgit.Repo.Migrations.CreateUsersOrganisations do
      use Ecto.Migration
    
      def change do
        create table(:users_organisations, foreign_key: false) do
          add :user_id, references(:users)
          add :organisation_id, references(:organisations)
        end
      end
    end