code-corps/code-corps-api

View on GitHub
priv/repo/migrations/20171016235656_add_pull_requests_to_tasks.exs

Summary

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

  def up do
    alter table(:tasks) do
      add :github_pull_request_id, references(:github_pull_requests)
    end
  end

  def down do
    alter table(:tasks) do
      remove :github_pull_request_id
    end
  end
end