Fix migrate.rake

This commit is contained in:
chris committed 2013-07-19 19:15:45 +08:00
1 parent 1357124f6f
commit ceff21fd1f
1 file changed
+1
+1
View File
@@ -320,6 +320,7 @@ namespace :migrate do
end
end
end
end
task :clear_news_tags => :environment do
`mongo #{Mongoid.config.database.name} --eval "db.tags.remove({_type: {$ne: 'Tag'}})"`