数据库表作为使用mongodb的铁路中的模板

时间:2012-07-02 06:12:22

标签: ruby-on-rails mongodb

我有一个组织表,其中包含了具有不同字段的organization_memberships。 我想从数据库中捕获每个organization_memberships数据作为模板,经过用户修改后,我想将这些细节保存在用户表中作为模板。

{
 "org_name": "xxxxx",
 "_id": {
  "$oid": "4fed411179216d10f000000c"
 },
 "organization_memberships": [
   {
    "family_currently_enrolled": "Yes",
    "_id": {
     "$oid": "4fed411179216d10f0000007"
    },
    "org_id": "KL-NWK-2",
    "age_group_and_school_days": "Two-year-old Tuesday/Thursday",
    "active_member_of_ppc": "Yes"
   },
   {
    "ssssssss": "Yes",
    "_id": {
     "$oid": "4fed411179216d10f000000a"
    },
    "org_id": "KL-NWK-1",
    "eeeeeee": "Two-year-old Tuesday/Thursday",
    "ddddddd": "Yes",
    "ttttt": "Two-year-old Tuesday/Thursday",
    "uuuuuuu": "Yes"
   }
  ],
}     

有人愿意建议我,我们怎样才能实现这个目标?

0 个答案:

没有答案