Mercurial > hg > soundsoftware-site
view db/migrate/022_serialize_possibles_values.rb @ 1581:ae8043b014c7 dockerise
Updates, fixes, and tidying to scripted deployment stuff
author | Chris Cannam |
---|---|
date | Tue, 15 Aug 2017 13:33:56 +0100 |
parents | 261b3d9a4903 |
children |
line wrap: on
line source
class SerializePossiblesValues < ActiveRecord::Migration def self.up CustomField.all.each do |field| if field.possible_values and field.possible_values.is_a? String field.possible_values = field.possible_values.split('|') field.save end end end def self.down end end