Add ash framework
This commit is contained in:
parent
c16c411891
commit
86437cbb9d
10 changed files with 278 additions and 8 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue