ruby on rails - Add undefined fields in MongoDB -
i have created mongo model described here: http://docs.mongodb.org/ecosystem/tutorial/model-data-for-ruby-on-rails/ but it's creating schema. need add fields, don't know. can't describe in model. how should be? you may check dynamic fields. depending on odm using there ways of implementing it. mongoid can check here . mongomapper has similar implementation described in thread .