Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-1604

Support JSON as a field type

    • Type: Icon: Task Task
    • Resolution: Done
    • 12_01_17
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Allow storing JSON natively in MongoDB via mongoid via a JSON field type.

      Current workaround given on answer to this question: http://stackoverflow.com/questions/4058341/rails-store-json-in-mongodb

      Involves setting an attribute not declared in the model object:

      SomeMongoidObject['dynamic_attribute'] = json_data
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            mydoghasworms mydoghasworms
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: