Back to Browse

Ruby on Rails #50 ActiveRecord Enum - when and why to use enums?

4.1K views
Aug 24, 2021
22:24

without enums: https://github.com/corsego/50-rails-enums/commit/c8d725750760884216c429d10c5edcb815ccd5b9 enums as integers: https://github.com/corsego/50-rails-enums/commit/4ca2195316931eac1cfae8b12ebd1d91ddc83ce3 enums as strings: https://github.com/corsego/50-rails-enums/commit/496c143c2c00945aa9beab0a8054fb1540ffecfb official guide: https://edgeapi.rubyonrails.org/classes/ActiveRecord/Enum.html

Download

1 formats

Video Formats

360pmp430.7 MB

Right-click 'Download' and select 'Save Link As' if the file opens in a new tab.

Ruby on Rails #50 ActiveRecord Enum - when and why to use enums? | NatokHD