Sha256: 656bc2be10f587fc9f0ef6d5046bdca27dfd1468bc1b2a2c558ac3bad70d6acd

Contents?: true

Size: 276 Bytes

Versions: 1

Compression:

Stored size: 276 Bytes

Contents

class RebuildFullpath < ActiveRecord::Migration
  def self.up
    Site.all.each do |site|
      puts "===== rebuilding fullpath for #{site.host} (#{Node.count(:conditions => "site_id = #{site.id}")} nodes)"
      site.rebuild_fullpath
    end
  end

  def self.down
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
zena-0.16.0 db/migrate/20091124161608_rebuild_fullpath.rb