Skip to content

Instantly share code, notes, and snippets.

@jordanmaguire
Created September 16, 2013 02:37
Show Gist options
  • Save jordanmaguire/6576156 to your computer and use it in GitHub Desktop.
Save jordanmaguire/6576156 to your computer and use it in GitHub Desktop.
Implementing the ERDBuilder from https://gist.github.com/jordanmaguire/6576135
erd = ERDBuilder.new
erd.begin_system("Infoamatica")
venue = erd.add_entity("Venue")
venue.attributes = {name: :string}
user = erd.add_entity("User")
user.attributes = {email: :string, password: :string}
erd.associate(user, venue, {association: :many_to_one, name: "Association"})
erd.export_as_png
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment