Add task to save pages
This commit is contained in:
parent
82a8f99208
commit
d2f837f342
|
@ -208,4 +208,10 @@ namespace :migrate do
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
task :save_pages => :environment do
|
||||||
|
Page.all.each do |page|
|
||||||
|
page.save
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
Reference in New Issue