bug in prev commit

This commit is contained in:
Bjørn Trondsen 2012-05-29 22:34:38 +02:00
parent 6ac3d72aed
commit a662366637
1 changed files with 3 additions and 2 deletions

View File

@ -358,8 +358,9 @@ if collection = db.collections.detect { |c| c.name == 'pages' }
end
# Update Norwegian locale from 'no' to 'nb'
collection = db.collections.detect {|c| c.name == 'locomotive_accounts'}
if collection = db.collections.detect {|c| c.name == 'locomotive_accounts'}
collection.update({ 'locale' => 'no' }, { '$set' => {'locale' => 'nb'}}, {:multi => true})
end
# some cleaning
%w(asset_collections liquid_templates delayed_backend_mongoid_jobs).each do |name|