Created
September 16, 2013 02:37
-
-
Save jordanmaguire/6576156 to your computer and use it in GitHub Desktop.
Implementing the ERDBuilder from https://gist.github.com/jordanmaguire/6576135
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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