This project is archived and is in readonly mode.
db:schema:dump saves enum columns as varchar(0) on MySQL
I have a
gender enum('M', 'F') column on a MySQL
table (MyISAM engine). When I invoke
db:schema:dump, Rails writes this column as:
t.string "gender", :limit => 0
Even if full support for enum types is not planned/desired, it should at the very least create a column with enough room for the largest possible value for that enumeration.
not null constraint is