Search code examples
ruby-on-railsrubysequel

How to use enum on Sequel Rails?


I am trying to use enum on my rails application that uses Sequel instead of Active Record.

How do i use enum when using Sequel instead of AR?


Solution

  • The functionality you're looking for is provided by Sequel's enum gem.

    Checkout the README for implementation details.