Add ash framework
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
Rafael Epplée 2025-04-21 11:38:34 +02:00
parent c16c411891
commit 86437cbb9d
No known key found for this signature in database
GPG key ID: B4EFE6DC59FAE118
10 changed files with 278 additions and 8 deletions

View file

@ -1,5 +1,22 @@
defmodule Mv.Repo do
use Ecto.Repo,
otp_app: :mv,
adapter: Ecto.Adapters.Postgres
use AshPostgres.Repo,
otp_app: :mv
@impl true
def installed_extensions do
# Add extensions here, and the migration generator will install them.
["ash-functions"]
end
# Don't open unnecessary transactions
# will default to `false` in 4.0
@impl true
def prefer_transaction? do
false
end
@impl true
def min_pg_version do
%Version{major: 17, minor: 2, patch: 0}
end
end