db/migrate/20091124161608_rebuild_fullpath.rb in zena-0.16.0 vs db/migrate/20091124161608_rebuild_fullpath.rb in zena-0.16.1

- old
+ new

@@ -1,6 +1,12 @@ class RebuildFullpath < ActiveRecord::Migration def self.up + + # Reset column information (used when running all migrations at once) + [User, Node, Version, Site, Group].each do |klass| + klass.reset_column_information + end + Site.all.each do |site| puts "===== rebuilding fullpath for #{site.host} (#{Node.count(:conditions => "site_id = #{site.id}")} nodes)" site.rebuild_fullpath end end