I am new to Elixir/Phoenix/Ecto. I created a database with 4 different schemas using ecto.migration. The tables were created correctly, but when I try to query the tables, ecto doesn't find them.
ERROR 42P01 (undefined_table): relation "users" does not exist
I know the problem is database schema-related because when I create the users table in the default schema, ecto finds it without any problem.
mix ecto.migrate
) before you can use the tables.@schema_prefix
annotation to the Ecto schema declaration. See see@schema_prefix
section in hexdocs.pm/ecto/Ecto.Schema.html#module-schema-attributes for more details.