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.
not null fields
I created this plugin because I do not like to write things more than
so, please take a look at the plugin, all your comments will be very
The code is hosted at github.
it can be installed as a rails plugin or as a gem.