mongoid6 - aliasing mongoid field names to legacy mongodb names -


i have existing meteor mongo database uses camelcase naming , attempting use rails manage of business logic. want have 1 many reference relationship between existing collections. when using mongoid 6 , doing has_many reference, mongoid calls link field user_id while in existing collection contains many userid, , can not changed.

how can have mongoid use userid reference field parent?

thanks don french


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -