Add task to save pages
This commit is contained in:
parent
82a8f99208
commit
d2f837f342
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue