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
Comments and changes to this ticket
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>