Fixed generator for activerecord migration