ash_postgres/priv/test_repo/migrations/20220209165137_add_status_enum.exs
2022-02-09 12:13:11 -05:00

12 lines
223 B
Elixir

defmodule AshPostgres.TestRepo.Migrations.AddStatusEnum do
use Ecto.Migration
def change do
execute("""
CREATE TYPE status AS ENUM ('open', 'closed');
""", """
DROP TYPE status;
"""
)
end
end