Story Notes - ER

ActiveRecord Class/Table Pages


It would be useful to have a page for each ActiveRecord class (ie, database table). This should include a connectivity diagram, field descriptions, usage notes, etc.


Most databases are willing to report on their internal structure. In the case of MySQL, this information is stored in a schema_info table in each database. Combining this with information from migrations and ActiveRecord declarations (eg, belongs_to, has_one, has_many), we can define the content and organization of the database tables.

This information can be used to create diagrams (eg, via GraphViz) that show a given table and all of its close-related "neighbors". Ideally, of course, these relationships would extend through classes into controllers and views.



Emerging Items

This wiki page is maintained by Rich Morin, an independent consultant specializing in software design, development, and documentation. Please feel free to email comments, inquiries, suggestions, etc!

Projects/Arti.SN_Form edit

SN_Title ActiveRecord Class/Table Pages
SN_Type ER
SN_UseType View
SN_Priority Important
SN_Urgency r.s.n.
SN_TaskSize L
SN_Phase Analysis
SN_Status Inactive
Topic revision: r3 - 12 Jun 2008, RichMorin
This site is powered by Foswiki Copyright © by the contributing authors. All material on this wiki is the property of the contributing authors.
Foswiki version v2.1.6, Release Foswiki-2.1.6, Plugin API version 2.4
Ideas, requests, problems regarding CFCL Wiki? Send us email