ash_postgres/priv/test_repo/migrations/20220209165137_add_status_enum.exs

13 lines
223 B
Elixir
Raw Normal View History

2022-02-10 06:13:11 +13:00
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