code-corps/code-corps-api

View on GitHub
priv/repo/migrations/20170224233516_add_owner_to_organization.exs

Summary

Maintainability
Test Coverage
defmodule CodeCorps.Repo.Migrations.AddOwnerToOrganization do
  use Ecto.Migration

  def change do
    alter table(:organizations) do
      add :owner_id, references(:users, on_delete: :nothing)
    end
  end
end