bug in prev commit

This commit is contained in:
Bjørn Trondsen 2012-05-29 22:34:38 +02:00
parent 6ac3d72aed
commit a662366637

View File

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