7 lines
142 B
Ruby
7 lines
142 B
Ruby
|
# encoding: utf-8
|
||
|
|
||
|
require 'mongo'
|
||
|
|
||
|
db = Mongo::Connection.new("localhost", 27017).db(ARGV[0])
|
||
|
|
||
|
p db["tags"].remove(:_type => {:$ne => 'Tag'})
|