Script to put column names as comments in model class files

I am looking for a script that will put the database column names as
comments above the model files.

I read about this somewhere but I can’t seem to find it again.

It was a script that ran through the column names of the database
tables and modified the model class files with comments that showed the
table names.

For instance the script put the “column names” comments that I mocked
up below.

/app/models/client.rb

column names

client_name

description

homepage_url

class Project < ActiveRecord::Base
belongs_to :Client
has_many :project_items
end

Chris Malek wrote:

up below.
class Project < ActiveRecord::Base
belongs_to :Client
has_many :project_items
end

Try this link:

Cheers,

Robby


Robby R.
http://www.robbyonrails.com/

I knew it was from Dave. My google skills must be lacking today.

Thank you very much.