Ash FrameworkAF
Ash Framework3y ago
3 replies
axelb

postgres function undefined

Setup of AshPostgres is not going well this time, I am getting the following error:
** (CompileError) lib/zenvtc/accounts/resources/user.ex:4: undefined function postgres/1 (there is no such import)

The offending file looks like this:
defmodule Zenvtc.Accounts.User do
  use Ash.Resource, data_layer: AshPostgres.Datalayer

  postgres do
    table "users"
    repo Zenvtc.Repo
  end

  attributes do
    uuid_primary_key :id
  end
end

And mix deps.get included these two lines:
ash 2.5.16
ash_postgres 1.3.5

I gotta say I am confused. Is something malfunctioning or am I really really tired and doing something obviously wrong?
Thanks for your help!
Was this page helpful?