Skip to content

Instantly share code, notes, and snippets.

@themusicman
Created September 27, 2012 22:56
Show Gist options
  • Save themusicman/3796958 to your computer and use it in GitHub Desktop.
Save themusicman/3796958 to your computer and use it in GitHub Desktop.
Rake task for Padrino and Rails-erd
task :erd do
require "rails_erd/diagram/graphviz"
RailsERD::Diagram::Graphviz.create(
filename: Padrino.root('docs/erd'),
attributes: [:foreign_keys, :primary_keys, :content, :timestamps, :inheritance]
)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment