UUID field in MongoDB using Rails and mongoid

前端 未结 0 1059
谎友^
谎友^ 2021-01-23 23:35

I need a uuid field. I know, that Mongo has native UUID support and UUID function. What I want something like this

field :uuid, type: String, default: \'UUID()\'
         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题