Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

is there a gem that builds a visual diagram of your table associations/relationships?

Something that generates an image or something to show that ModelA has_many ModelB etc?

like image 499
corroded Avatar asked Apr 15 '11 09:04

corroded


4 Answers

Just found out about Rails ERD.

Looks pretty awesome!

like image 197
corroded Avatar answered Nov 17 '22 07:11

corroded


Rubymine can generate that for you. It is an awesome tool.

like image 43
nathanvda Avatar answered Nov 17 '22 07:11

nathanvda


Try rails_assviz and RailRoad.

One more ancient plugin for zombie lovers is Rails Application Visualizer.

like image 2
fl00r Avatar answered Nov 17 '22 07:11

fl00r


If using rails_assviz then you need to modify the line that loads active support to get it to work by adding /all to: require 'active_support'

Original:

#Checks for active_support
begin
  require 'active_support'
rescue LoadError
  raise "Install the Ruby on Rails gem: gem install rails"
  return false
end

Modified:

#Checks for active_support
begin
  require 'active_support/all'
rescue LoadError
  raise "Install the Ruby on Rails gem: gem install rails"
  return false
end
like image 1
Denise Mauldin Avatar answered Nov 17 '22 09:11

Denise Mauldin