Error with Repo.get (undefined table) whereas Repo.query works fine

Hi,
When i run this line :


Query is successfull.

But when i try with get function i got this:


Error with undefined table, but it’s the same table. I don’t understand.

The path of the table is defined in my Spot module like that:
Capture d’écran 2021-05-25 à 17.11.23

Someone has an idea for understanding this?
Thx :slight_smile:

Might be worth looking into @schema_prefix for Ecto.Schema.

https://hexdocs.pm/ecto/Ecto.Schema.html#module-schema-attributes

4 Likes

Thx a lot !! it’s working now :wink: