added four dynamic enum fields to user defined records

Hopefully nothing too scary here. It did involve moving the enum creation methods from the 001 migration to utils.rb - that might want a sanity check. Tests are passing.