Rails 6 adds negative scopes on enum
07-Mar-2019 1735
This blog is part of our Rails 6 series. Rails 6.0.0.beta2 was recently released.When an enum attribute is defined on a model, Rails adds some default scopes to filter records based on values of enum on enum field.Here is how enum scope can be used.
Rails 6 adds negative scopes on enum #ruby #rubydeveloper #rubyonrails #Rails #negative #scopes https://rubyonrails.ba/link/rails-6-adds-negative-scopes-on-enum