Skip to content
This repository

A Rails engine for drawing your app's ER diagram

branch: master

Fetching latest commit…


Cannot retrieve the latest commit at this time

Octocat-spinner-32 app Format July 22, 2013
Octocat-spinner-32 config show migration status April 28, 2012
Octocat-spinner-32 lib
Octocat-spinner-32 spec
Octocat-spinner-32 vendor
Octocat-spinner-32 .gitignore prefer simple Rails app for testing May 12, 2012
Octocat-spinner-32 Gemfile bundle gem erd April 25, 2012
Octocat-spinner-32 MIT-LICENSE documentation April 27, 2012
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile rake spec May 17, 2012
Octocat-spinner-32 Add foundation for rspec suite April 30, 2012
Octocat-spinner-32 erd.gemspec


A Rails engine for drawing your app's ER diagram and operating migrations


  • Rails 4.0, 3.2, or 3.1

  • Graphviz


Add 'erd' gem to your existing app's Gemfile:

gem 'erd'

Bundle it:

% bundle


Browse at your localhost:3000/erd


  • Erd draws an ER diagram based on your app's database and models

  • You can drag and arrange the positions of each model

  • You can operate DB schema manipulations such as `add column`, `rename column`, `alter column`, `create model (as well as table)`, and `drop table`

  • Then, Erd generates migration files on the server

  • And you can run each migration on your browser


  • Fix buggy JS

  • drop column (need to think of the UI)

  • stop depending on rails-erd and Graphviz

  • tests

  • cleaner code (the code is horrible. Please don't read the code, though of course your patches welcome)

Contributing to Erd

  • Send me your pull requests!

- Team


Copyright © 2012 Akira Matsuda. See MIT-LICENSE for further details.

Something went wrong with that request. Please try again.