ash_postgres/priv/test_repo/migrations/20210401061307_install_2_extensions.exs.exs
Zach Daniel 4d2d29d976 feat: support configuring references
feat: support configuring polymorphic references
feat: support `distinct` Ash queries
2021-04-01 02:19:30 -04:00

21 lines
No EOL
656 B
Elixir

defmodule AshPostgres.TestRepo.Migrations.Install2Extensions do
@moduledoc """
Installs any extensions that are mentioned in the repo's `installed_extensions/0` callback
This file was autogenerated with `mix ash_postgres.generate_migrations`
"""
use Ecto.Migration
def up do
execute("CREATE EXTENSION IF NOT EXISTS \"uuid-ossp\"")
execute("CREATE EXTENSION IF NOT EXISTS \"pg_trgm\"")
end
def down do
# Uncomment this if you actually want to uninstall the extensions
# when this migration is rolled back.
execute("DROP EXTENSION IF EXISTS \"uuid-ossp\"")
execute("DROP EXTENSION IF EXISTS \"pg_trgm\"")
end
end