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