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

thechrisoshow / what_column

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

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

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

A Rails plugin that adds comments to your active record objects listing the columns — Read more

  cancel

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

This URL has Read+Write access

Removed the need for a specific Rails gem 
thechrisoshow (author)
Wed Nov 11 02:13:14 -0800 2009
commit  13abea5a3eb574b5470d626d3b3ad40546b574c7
tree    18db082e24c61c414cdbc3c22066b6969f197e5d
parent  aecb0619298ae15bdbc951ce1f2a643f40b58f42
what_column /
name age
history
message
file .gitignore Wed Apr 01 13:02:59 -0700 2009 Setup git ignore properly [thechrisoshow]
file MIT-LICENSE Loading commit data...
file README.markdown
file Rakefile Tue Mar 31 00:35:29 -0700 2009 first commit' [thechrisoshow]
file init.rb Sun Apr 05 06:14:23 -0700 2009 Now column details are added to models after ev... [thechrisoshow]
file install.rb
directory lib/
directory tasks/ Tue Apr 07 09:23:31 -0700 2009 Some refactoring [thechrisoshow]
directory test/
file uninstall.rb Tue Mar 31 00:35:29 -0700 2009 first commit' [thechrisoshow]
README.markdown

What Column?!?

A Rails plugin that details columns in ActiveRecord models.

Tired of having to look at schema.rb to figure out what columns belong to a model?
Well no more!

With the what_column plugin a comment appears at the top of your models displaying the column details.

INSTALLATION

Go into your Rails folder and type:

script/plugin install git://github.com/thechrisoshow/what_column.git

USAGE

Everytime you run migrations in development mode your models will be updated with a comment block detailing comment information:

class User < ActiveRecord::Base

  # === List of columns ===
  #   id         : integer 
  #   name       : string 
  #   created_at : datetime 
  #   updated_at : datetime 
  # =======================

end

It only works for those models under app/models. And as it writes directly to your model files make sure that you use source control!

Should you wish to run the commands manually there are rake commands. Check 'em out:

rake what_column:add #=> Adds column details to models

rake what_column:remove #=> Removes column details from models

Copyright (c) 2009 Chris O'Sullivan, 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