github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

tomtt / schema-browser

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 29
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (2)
    • js_update
    • master ✓
  • Tags (0)
Sending Request…
Click here to lend your support to: schema-browser and make a donation at www.pledgie.com ! Edit Pledgie Setup

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Rails schema browser plugin: proof of concept — Read more

  cancel

http://tomtenthij.co.uk/2008/2/12/rails-schema-browser-plugin-proof-of-concept

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Requiring schema_browser in init.rb fixes errors 
Tom ten Thij (author)
Thu Apr 17 15:44:33 -0700 2008
commit  19cec3a91eefc2077d2052330298796f0dc3b026
tree    b82bf54e088b8a5582ae3b61089c2bdcc68a750f
parent  6d65acc12c50fc710ac842e187be3a1fe4521c37
schema-browser /
name age
history
message
file .gitignore Loading commit data...
file MIT-LICENSE
file README
file Rakefile
directory generators/
file init.rb
file install.rb
directory lib/
directory spec/
directory tasks/
file uninstall.rb
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
Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server