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.


Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -