This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module YourApp | |
class Application < Rails::Application | |
# Convenience for loading config/foo.yml for the current Rails env. | |
# | |
# Example: | |
# | |
# config/cleversafe.yml: | |
# | |
# production: | |
# url: http://127.0.0.1:8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var r = new RegExp("system"); | |
db.getCollectionNames().forEach( | |
function(c){ | |
if(!r.test(c)){ | |
var indexes = db[c].getIndexes(); | |
indexes.forEach(function(i){ | |
var val = i["key"].toSource(); | |
var trimmedValue = val.substr(1,val.length-2); | |
if (trimmedValue !="{_id:1}") | |
{ |