Add task to save pages

This commit is contained in:
chris 2013-02-07 19:08:35 +08:00
parent 82a8f99208
commit d2f837f342
1 changed files with 6 additions and 0 deletions

View File

@ -206,6 +206,12 @@ namespace :migrate do
category.destroy
end
end
end
task :save_pages => :environment do
Page.all.each do |page|
page.save
end
end
end