class CleanupContents < ActiveRecord::Migration
  def self.up
    STDERR.puts "Updating all articles"
    # This is needed when migrating from 2.5.x, because we skip GUID
    # generation and tagging during earlier migrations.
    Article.find(:all).each do |a|
      a.save
    end
  end
end

Add cleanup migration; only needed when going straight from 2.5.x to current trunk, but safe for everyone
Add cleanup migration; only needed when going straight from 2.5.x to current trunk, but safe for everyone

git-svn-id: 70ab0960c3db1cbf656efd6df54a8f3de72dc710@681 820eb932-12ee-0310-9ca8-eeb645f39767
