public
Description: Rails schema browser plugin: proof of concept
Homepage: http://tomtenthij.co.uk/2008/2/12/rails-schema-browser-plugin-proof-of-concept
Clone URL: git://github.com/tomtt/schema-browser.git
Click here to lend your support to: schema-browser and make a donation at www.pledgie.com !
Tom ten Thij (author)
Thu Apr 10 13:00:25 -0700 2008
commit  6d65acc12c50fc710ac842e187be3a1fe4521c37
tree    d9eec2400d8804e8fddc066023f3d619c677dd57
parent  804ac0d7ba39a6e24182a99a4c5c83ee9c1dc163
README
SchemaBrowser
=============

This plugin will allow the database structure and model relations to
be viewed in an interactive graphical interface. The interface used heavily based
on http://ondras.zarovi.cz/sql/

Please note that this is just a proof of concept at this stage and
that it will be in constant state of rewrite over the next few
weeks. Be prepared for everything changing on a whim.

To install run script/generate schema_browser. This creates a
controller called schema_browser, views generating the interface and
the xml representation of the database schema and model relations. It
also adds routes for this and copies required files to public/

Todo
====
* Support polymorphic relations
* Modify layout page to be more suited for just browsing the schema
* Smarter default placement of tables
* Ability to store position of tables in database, stored remotely after drag event in interface
* Allow name of controller (and schema view) to be specified to generator
* Disable by default in production mode
* More support in interface for untangling relations
* Provide option to not show certain tables
* Allow different views of the schema (with tables having different properties/positions for each view)
* Create whitelist and blacklist implementation to determine which table to show
* Allow table to be collapsed (interface + store in database)
* Fix issue where some tables do not show PK for their id

Copyright (c) 2008 [Tom ten Thij], released under the MIT license