2007-02-03 15:57:33 +03:00
|
|
|
class SerializePossiblesValues < ActiveRecord::Migration
|
|
|
|
def self.up
|
2012-12-03 00:28:37 +04:00
|
|
|
CustomField.all.each do |field|
|
2007-02-03 15:57:33 +03:00
|
|
|
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
|