Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save technicalpickles/1004018 to your computer and use it in GitHub Desktop.
Save technicalpickles/1004018 to your computer and use it in GitHub Desktop.
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