Sorry for the double post, but using the schema module actually works!
Your problem is using the Account atom, which isn’t probably aliased to its fully qualified name.
You’ll see that if you alias it, or use the fully qualified module name, such as YourApp.Data.Account, it will work.
alias YourApp.Data.Account
# Without the alias above, Ecto does not know what Account is.
# You might have multiple Account modules in different namespaces.
test(Account)
# This will always work, alias or not
test(YourApp.Data.Account)






















