I want to generate a model and the corresponding database table in rails using the generator script. The database table has a field with "enum" type. How can I generate it?
The table: create table works { id int unsigned not null auto_increment, nickname varchar(20) not null, sex enum('m', 'f'> not null };
the command: script/generator work nickname:string sex:(what should I write here?)