code-corps/code-corps-api

View on GitHub
priv/repo/migrations/20171031232023_add_sync_state_to_project_github_repos.exs

Summary

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

  def change do
    alter table(:project_github_repos) do
      add :sync_state, :string, default: "unsynced"
    end

    create index(:project_github_repos, [:sync_state])
  end
end