Rails-4.2.3 migration with enum

i have a table (and a moel linked): Works (in a postgresql database)
then i would like to add a column named “categorie” with “enum” type and
define the list of choice for enum.

I read the rails guide doc talk about ability to use enum type for
database, and how to do that…
but in fact, it is not enum type.

Is it possible (really) to use enum type FROM database?
and is it possible to generate a (real) enum type IN the database (with
list of choices to create) ?

This article may be helpful:
https://richonrails.com/articles/active-record-enums-in-ruby-on-rails-4-1

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs