Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
1234567891011 |
- class FixUsersCustomValues < ActiveRecord::Migration
- 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
|