Vous ne pouvez pas sélectionner plus de 25 sujets
Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
1234567891011 |
- class FixUsersCustomValues < ActiveRecord::Migration[4.2]
- def self.up
- CustomValue.where("customized_type = 'User'").
- update_all("customized_type = 'Principal'")
- end
-
- def self.down
- CustomValue.where("customized_type = 'Principal'").
- update_all("customized_type = 'User'")
- end
- end
|