Database Schemas?

Is there a way to see my current database snapshot? Coming from rails, if I want to see the current state of my database I can check the db/schema.rb file and it will show me the current tables and rows based on the state of the migrations.

In elixir, I’m not sure how to get a snapshot of my database. I am getting a relation error,

(undefined_table): relation "forums_categories" does not exist

I’m not sure how to approach solving this db issue

This command will provide an SQL dump of the schema:

mix ecto.dump
2 Likes

Thank you. That’s exactly what i was looking for

Similar thread with a few more tips: