Mercurial > hg > soundsoftware-site
view db/migrate/022_serialize_possibles_values.rb @ 806:a42dcc01dfee cannam
Move tag list in My Projects up to next to public/private text; move tags column in projects table to left of managed-by column and fix header colour; show My Projects toggle frame only if I have projects
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Wed, 23 Nov 2011 13:18:11 +0000 |
parents | 513646585e45 |
children | 622f24f53b42 |
line wrap: on
line source
class SerializePossiblesValues < ActiveRecord::Migration def self.up CustomField.find(: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