Replies: 2 comments 6 replies
-
Sequel doesn't currently have an built-in equivalent. If you want to use enums, I recommend doing so at the database level, which Sequel supports on PostgreSQL using the pg_enum extension. There are external Sequel plugins that implement similar functionality, such as https://github.com/planas/sequel_enum. That said, I'm not opposed to shipping such a plugin with Sequel, so please submit a pull request for that if you are interested. |
Beta Was this translation helpful? Give feedback.
-
OK, this support has been committed: 473a222 Please give it a shot and let me know if you think we should any changes before next week's release. |
Beta Was this translation helpful? Give feedback.
-
I recently found out that in rodauth-rails, I can use the
ActiveRecord::Enum
feature to create names for the integer status values.rodauth-rails doesn't yet have support for Sequel models (generators + associations), but since I plan to add it eventually, I was wondering whether Sequel had an equivalent plugin (and if not, whether there is interest in having it).
Beta Was this translation helpful? Give feedback.
All reactions