Skip to content
Snippets Groups Projects
Commit 0afa231b authored by Arnaud Levy's avatar Arnaud Levy
Browse files

order

parent e00539fa
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,10 @@ require 'communication/block/template/chapter'
class BlocksMigration
def self.cleanup
Communication::Website::Post.find_each do |post|
Communication::Website::Post.order(:website).find_each do |post|
cleanup_item post
end
Communication::Website::Page.find_each do |page|
Communication::Website::Page.order(:website).find_each do |page|
cleanup_item page
end
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment