Unset operation failing for MongoMapper model, cannot delete / remove key from model

前端 未结 1 1553
独厮守ぢ
独厮守ぢ 2021-01-18 17:24

We\'re on mongodb 2.0.0, mongo gem 1.4.1, mongo_mapper 0.9.2, rails 3.0.6.

We love MongoMapper, but we need helping resolving one nasty issue: we have a key carried

相关标签:
1条回答
  • 2021-01-18 18:02

    It pains us to post the answer since this solidifies our status as "morons, idiots, fools, noobs, Jay Leno fans," but in case anyone else bumps into the same issue: while our model directory was clean in the dev environment, the model dir in the production environment contained old test files ... which contained an old model with the "id" key.

    Obviously, removing the old files and the old models solved everything, though we're left with staggering bruises to our egos and to our heads (from excessive banging against the walls).

    0 讨论(0)
提交回复
热议问题