code-corps/code-corps-api

View on GitHub
priv/repo/migrations/20180113002017_normalize_organization_user_type.exs

Summary

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

  def up do
    execute(
      """
      UPDATE github_users
      SET type = 'organization'
      WHERE type = 'Organization'
      """
    )
  end

  def down do
    execute(
      """
      UPDATE github_users
      SET type = 'Organization'
      WHERE type = 'organization'
      """
    )
  end
end