I have just release a rails plugin with a generator that takes the
information you already wrote on the migration and creates a model
with that information already included.
for example:
not null fields
belongs_to associations
numeric fields
…
I created this plugin because I do not like to write things more than
one time
so, please take a look at the plugin, all your comments will be very
welcome.
http://www.urubatan.info/2008/04/lazy-mens-rails-plugin-mydry/
The code is hosted at github.
it can be installed as a rails plugin or as a gem.