Main Menu

Development

Rails ERD and Padrino

on October 29, 2015

I was searching for a data modeling tool to visualize a project's database structure and I came across the rails-erd gem that fits the bill perfectly. The only downside is that the project that I wanted to use this on is using Padrino and not Rails. Fortunately, on the rails-erd site they have some instructions for using it outside of a Rails project. So below is an adaption of those instructions for use in a Padrino project.

Step 1: Add the gem to your Gemfile (and run `bundle`)

Step 2: Create a Rake task to generate the visualization

Create a /tasks/erd.rake file and add the code below to it:

You will need to create a docs folder in the root of your project or remove the filename: Padrino.root('docs/erd') from the Rake task

Step 3: Run the erd Rake task

Step 4: Enjoy!

Example visualization:



Tags:

Rails Padrino ERD Data Visualization Data Modeling Database Stucture

Shopping for a new digital agency?

Contact Us

Strategy

Online Marketing Is A Lot Like Online Dating

September 08, 2016 by Terri Jones

Strategy

5 Reasons Your Content Should Live on Your Website

June 13, 2016 by Morgan Porter

Strategy

Why We Are Distributed

January 28, 2016 by Morgan Porter

x

Development

Application error messages, write good ones and make sure they are seen!

June 16, 2017 by Thomas Brewer

Strategy

Get Your YouTube Videos Seen With These 3 Search Optimization Tips

June 14, 2017 by Thomas Brewer

Strategy

Website Content Strategy and Generation Z

June 12, 2017 by Thomas Brewer

Strategy

The Importance of Having An SSL Certificate On Your Website

June 09, 2017 by Thomas Brewer

Strategy

Left+Right Builds Award Worthy Web Applications

June 08, 2017 by Monica Bohanon

Strategy

Google My Business for local SEO

June 06, 2017 by Thomas Brewer

Development

Do You Own Your Code?

March 01, 2017 by Thomas Brewer

News

Left+Right Hired by Fantasy Sports Startup

February 17, 2017 by Morgan Porter

News

Meet Our Newest Client: Asian & Pacific Islander American Scholarship Fund

December 07, 2016 by Morgan Porter

Strategy

Online Marketing Is A Lot Like Online Dating

September 08, 2016 by Terri Jones

News

Meet Our Newest Client: Rx Partnership

June 29, 2016 by Morgan Porter

Strategy

5 Reasons Your Content Should Live on Your Website

June 13, 2016 by Morgan Porter

News

Long Live RVA News

June 07, 2016 by Morgan Porter

Strategy

How Nonprofits Can Better Engage Millennials

June 02, 2016 by Thomas Brewer

Development

Why We Use Git

May 19, 2016 by Thomas Brewer

Development

ElasticSearch and Rails: Where did my records go?

February 09, 2016 by Thomas Brewer

Strategy

Why We Are Distributed

January 28, 2016 by Morgan Porter

Development

ExpressionEngine: Announcing Sherlock!

November 11, 2015 by Thomas Brewer

Development

ExpressionEngine: Houdini - making templates magical.

November 03, 2015 by Thomas Brewer

Development

Lazy Lion

October 29, 2015 by Thomas Brewer

Development

Rails ERD and Padrino

October 29, 2015 by Thomas Brewer

News

We're One of Richmond's Fastest Growing Companies

October 28, 2015

Strategy

The Importance of Responsive Design for Non-Profit Organizations

February 10, 2015

Contact Us