Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

file 12 lines (11 sloc) 0.296 kb
1 2 3 4 5 6 7 8 9 10 11 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
Something went wrong with that request. Please try again.