how (replace|create) an enum field on rails 2.0 migrations?

后端 未结 10 1660
轮回少年
轮回少年 2020-12-07 10:27

I would like to create an enum field at sone migration I\'m doing, I tried searching in google but I can\'t find the way to do it in the migration

the only thing I f

10条回答
  •  情书的邮戳
    2020-12-07 11:01

    ok, just read the whole rails api and found what I neeed and I dont like :( Rails doesn't support emum as native type on migrations, here is the info, I need to search for a plugin or other method.

    I will keep you posted.

提交回复
热议问题