Install graphviz
sudo brew install graphvizOpen SequelPro, choose database and export dot file. Now, run the command:
dot -Tsvg your_database.dot > your_database.svgIt's possible export to png and jpg too, change -Tsvg and .svg by respective formats.
Source: https://www.norbauer.com/rails-consulting/notes/erd-diagrams-from-sequel-pro.html