diff --git a/db/migrate/20110805014415_remove_improperly_embedded_yaml_data.rb b/db/migrate/20110805014415_remove_improperly_embedded_yaml_data.rb new file mode 100644 index 00000000000..56ded38d320 --- /dev/null +++ b/db/migrate/20110805014415_remove_improperly_embedded_yaml_data.rb @@ -0,0 +1,12 @@ +class RemoveImproperlyEmbeddedYamlData < ActiveRecord::Migration + def self.up + Dependency.where("requirements like '%YAML::Syck::DefaultKey%'").each do |d| + d.requirements = d.clean_requirements + d.save(:validate => false) + end + end + + def self.down + # Do nothing. + end +end