Fix migrate.rake

This commit is contained in:
chris 2013-07-19 19:15:45 +08:00
parent 1357124f6f
commit ceff21fd1f
1 changed files with 1 additions and 0 deletions

View File

@ -320,6 +320,7 @@ namespace :migrate do
end end
end end
end end
end
task :clear_news_tags => :environment do task :clear_news_tags => :environment do
`mongo #{Mongoid.config.database.name} --eval "db.tags.remove({_type: {$ne: 'Tag'}})"` `mongo #{Mongoid.config.database.name} --eval "db.tags.remove({_type: {$ne: 'Tag'}})"`