title: Rails Enum, how to remove a value from the array?
body: <p>this is the first time I use rails enum.</p>
  
  <p>I have in my app the user model with a role. To manage the role I use enum</p>
  
  <pre><code>enum professional_role: ProfessionalRole.all
  </code></pre>
  
  <p>ProfessionalRole is a class</p>
  
  <pre><code> class ProfessionalRole
    def self.all
      %i(altro
         amministrazione
         segreteria
         buyer
         buyer_audiovideo_consumer_electronics_home_entertainment
         buyer_fotografia_photo
         buyer_grandi_elettrodomestici_mda_home_confort
         buyer_it_information_technology
         buyer_piccoli_elettrodomestici_sda
         buyer_telefonia_telecomunicazioni
         capi_area
         comunicazione_hr
         direzione
         marketing
         edp)
    end
   end
  </code></pre>
  
  <p>I need to remove some values from the array, of course I don't have users with that roles, but removing some values every user role is wrong, because I short the array. How can I solve it?</p>
  
  <p>The unique way I find to solve is to save to a CSV the user and the roles, then modify the array and resave every user with his role from the CSV file.</p>