priv/repo/migrations/20180113002017_normalize_organization_user_type.exs
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