Create a set column with database migration in rails

Posted by Micke on Stack Overflow See other posts from Stack Overflow or by Micke
Published on 2010-04-22T10:19:57Z Indexed on 2010/04/22 10:23 UTC
Read the original article Hit count: 490

Filed under:
|
|
|

Hello.

I need to add a new column to my users table in the database. I want the type of the column to be set. The column represents the users gender. There should be two options to the set. One form Male "m" and the other for Female "f". But i havent found any doccumentation for adding a column with the set type.

How can i do this?

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about ruby