mirror of
https://github.com/ash-project/ash_postgres.git
synced 2024-09-20 13:33:50 +12:00
12 lines
223 B
Elixir
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
|