Forked from hone/20110601153518_regenerate_runtime_dependencies_list.rb
Created
June 2, 2011 06:26
-
-
Save technicalpickles/1004018 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class RegenerateRuntimeDependenciesList < ActiveRecord::Migration | |
def self.up | |
Dependency.find_each(:batch_size => 500) do |dep| | |
if dep.version | |
$redis.del(Dependency.runtime_key(dep.version.full_name)) | |
dep.save | |
end | |
end | |
end | |
def self.down | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment