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

On Tuesday, July 14, 2015 at 7:01:17 AM UTC-4, Jerome Lanteri wrote:
>
> 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) ?
>
>
>

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/f24f9c9c-72b6-4638-9f49-c6c62f3faca9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to