Rails/Mongoid: Parent object not recognising child of has_many/belongs_to relation after mongoimport
问题 A CSV containing the following rows is imported into mongodb via CSV using the mongoimport tool: object_1_id,field1,field2 52db7f026956b996a0000001,apples,oranges 52db7f026956b996a0000001,pears,plums The fields are imported into the collection Object2 . After import the rows are confirmed to exist via the console. #<Object2 _id: 52e0713417bcabcb4d09ad12, _type: nil, field1: "apples", field2: "oranges", object_1_id: "52db7f026956b996a0000001"> #<Object2 _id: 52e0713517bcabcb4d09ad76, _type: