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
Post a Comment