Visualize Database Schema Using Ecto
It was hard for me find a way to create a db schema to visualize my apps tables and columns in Ecto. I was looking for something similar to rails schema.rb
, but everything that came up discussed Ecto.Schema
. If somehow you ended up here looking for an answer to the problem just mentioned you can use the mix task ecto.dump
to accomplish this.
mix ecto.dump
This will generate a structure.sql
file containing the structure of your database in priv/repo
Similar posts: